pub struct PruneOptions {
pub dry_run: bool,
pub ttl: Duration,
pub now: SystemTime,
}Expand description
Options for prune_sessions.
Fields§
§dry_run: boolReport matches without deleting them.
ttl: DurationAge after which a session with a dead or unknown owner is stale.
now: SystemTimeClock used for the age check.
Trait Implementations§
Source§impl Clone for PruneOptions
impl Clone for PruneOptions
Source§impl Debug for PruneOptions
impl Debug for PruneOptions
Auto Trait Implementations§
impl Freeze for PruneOptions
impl RefUnwindSafe for PruneOptions
impl Send for PruneOptions
impl Sync for PruneOptions
impl Unpin for PruneOptions
impl UnsafeUnpin for PruneOptions
impl UnwindSafe for PruneOptions
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