#[repr(u8)]pub enum LruAgingStrategy {
Halving,
Decrement(u32),
}Expand description
Strategy to use when aging LRU counter on scans.
Variants§
Halving
Halving the counter value each scan. Useful to age the items more quickly.
Decrement(u32)
Reduces the counter by a fixed amount each scan.
Trait Implementations§
Source§impl Clone for LruAgingStrategy
impl Clone for LruAgingStrategy
Source§fn clone(&self) -> LruAgingStrategy
fn clone(&self) -> LruAgingStrategy
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 LruAgingStrategy
impl Debug for LruAgingStrategy
Source§impl Default for LruAgingStrategy
impl Default for LruAgingStrategy
Source§fn default() -> LruAgingStrategy
fn default() -> LruAgingStrategy
Returns the “default value” for a type. Read more
impl Eq for LruAgingStrategy
Source§impl PartialEq for LruAgingStrategy
impl PartialEq for LruAgingStrategy
Source§fn eq(&self, other: &LruAgingStrategy) -> bool
fn eq(&self, other: &LruAgingStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LruAgingStrategy
Auto Trait Implementations§
impl Freeze for LruAgingStrategy
impl RefUnwindSafe for LruAgingStrategy
impl Send for LruAgingStrategy
impl Sync for LruAgingStrategy
impl Unpin for LruAgingStrategy
impl UnsafeUnpin for LruAgingStrategy
impl UnwindSafe for LruAgingStrategy
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