pub enum EvictionMode {
Soft,
MaxAge,
MaxSize,
}Expand description
Mode that accounted for evicting a given entry per AUX-024.
When more than one mode would match the same entry, the highest-priority mode wins (in this declaration order).
Variants§
Soft
CACHE-022 --soft pass: schema-stale or incomplete
entry.
MaxAge
AUX-023 --max-age pass: well-formed but too old.
MaxSize
AUX-023 --max-size pass: well-formed but oldest among
survivors of the previous passes when the residual
footprint exceeded the bound.
Trait Implementations§
Source§impl Clone for EvictionMode
impl Clone for EvictionMode
Source§fn clone(&self) -> EvictionMode
fn clone(&self) -> EvictionMode
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 moreSource§impl Debug for EvictionMode
impl Debug for EvictionMode
Source§impl PartialEq for EvictionMode
impl PartialEq for EvictionMode
Source§fn eq(&self, other: &EvictionMode) -> bool
fn eq(&self, other: &EvictionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EvictionMode
impl Eq for EvictionMode
impl StructuralPartialEq for EvictionMode
Auto Trait Implementations§
impl Freeze for EvictionMode
impl RefUnwindSafe for EvictionMode
impl Send for EvictionMode
impl Sync for EvictionMode
impl Unpin for EvictionMode
impl UnsafeUnpin for EvictionMode
impl UnwindSafe for EvictionMode
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