pub enum CacheTier {
Resident,
Local,
Absent,
}Expand description
The tier that would serve a read of an entry, as
CacheBackend::peek_tier predicts it.
Variants§
Resident
In RAM: a read is a memory hit.
Local
Not in RAM but held by a local tier below it, such as a persistent store or a buffer of recently evicted entries: a read costs local I/O at most, never the caller’s loader.
Absent
Held by no tier: a read runs the caller’s loader.
Trait Implementations§
impl Copy for CacheTier
impl Eq for CacheTier
impl StructuralPartialEq for CacheTier
Auto Trait Implementations§
impl Freeze for CacheTier
impl RefUnwindSafe for CacheTier
impl Send for CacheTier
impl Sync for CacheTier
impl Unpin for CacheTier
impl UnsafeUnpin for CacheTier
impl UnwindSafe for CacheTier
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.