pub enum EvictionReason {
Expired,
Capacity,
Invalidated,
Replaced,
DependencyInvalidated,
}Expand description
Reason for cache eviction
Variants§
Expired
TTL expired
Capacity
Capacity limit reached
Invalidated
Explicitly invalidated
Replaced
Replaced by new value
DependencyInvalidated
Dependency was invalidated
Implementations§
Trait Implementations§
Source§impl Clone for EvictionReason
impl Clone for EvictionReason
Source§fn clone(&self) -> EvictionReason
fn clone(&self) -> EvictionReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EvictionReason
impl Debug for EvictionReason
Source§impl Hash for EvictionReason
impl Hash for EvictionReason
Source§impl PartialEq for EvictionReason
impl PartialEq for EvictionReason
impl Copy for EvictionReason
impl Eq for EvictionReason
impl StructuralPartialEq for EvictionReason
Auto Trait Implementations§
impl Freeze for EvictionReason
impl RefUnwindSafe for EvictionReason
impl Send for EvictionReason
impl Sync for EvictionReason
impl Unpin for EvictionReason
impl UnwindSafe for EvictionReason
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