pub enum AutoPrune {
NoLimits,
Nothing,
Pruned {
removed: usize,
failed: usize,
pinned_kept: usize,
},
Skipped {
would_remove: usize,
},
}Expand description
Result of SessionStore::auto_prune.
Variants§
NoLimits
Both retention limits are 0: nothing to apply, nothing deleted.
Nothing
The policy selects no session.
Pruned
Deleted removed sessions; failed could not be deleted. pinned_kept matched the
policy and was left alone because it is pinned.
Skipped
The policy would remove would_remove sessions, more than
PRUNE_CONFIRM_ABOVE: nothing was deleted.
Trait Implementations§
impl Copy for AutoPrune
impl Eq for AutoPrune
impl StructuralPartialEq for AutoPrune
Auto Trait Implementations§
impl Forget for AutoPrune
impl Freeze for AutoPrune
impl Move for AutoPrune
impl RefUnwindSafe for AutoPrune
impl Send for AutoPrune
impl Sync for AutoPrune
impl Unpin for AutoPrune
impl UnsafeUnpin for AutoPrune
impl UnwindSafe for AutoPrune
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.