pub struct SweepPolicy {
pub min_age: Duration,
pub now: SystemTime,
}Expand description
When a sweep runs and how old a blob must be to qualify.
now is a parameter rather than read from the clock so the grace period is
testable without backdating files across three substrates.
Fields§
§min_age: Duration§now: SystemTimeTrait Implementations§
Source§impl Clone for SweepPolicy
impl Clone for SweepPolicy
Source§fn clone(&self) -> SweepPolicy
fn clone(&self) -> SweepPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SweepPolicy
Source§impl Debug for SweepPolicy
impl Debug for SweepPolicy
Auto Trait Implementations§
impl Freeze for SweepPolicy
impl RefUnwindSafe for SweepPolicy
impl Send for SweepPolicy
impl Sync for SweepPolicy
impl Unpin for SweepPolicy
impl UnsafeUnpin for SweepPolicy
impl UnwindSafe for SweepPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more