pub enum Hint {
Normal,
Low,
}Expand description
Hint for the cache eviction algorithm to decide the priority of the specific entry if needed.
The meaning of the hint differs in each cache eviction algorithm, and some of them can be ignore by specific algorithm.
If the given cache hint does not suitable for the cache eviction algorithm that is active, the algorithm may modify it to a proper one.
For more details, please refer to the document of each enum options.
Variants§
Normal
The default hint shared by all cache eviction algorithms.
Low
Suggest the priority of the entry is low.
Used by LRU.
Trait Implementations§
impl Copy for Hint
impl Eq for Hint
impl StructuralPartialEq for Hint
Auto Trait Implementations§
impl Freeze for Hint
impl RefUnwindSafe for Hint
impl Send for Hint
impl Sync for Hint
impl Unpin for Hint
impl UnwindSafe for Hint
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