pub struct SlruMeta {
pub location: Location,
}Expand description
SLRU-specific metadata stored in each cache entry.
This uses the unified CacheEntry<K, V, SlruMeta> pattern, eliminating
the need for a complex tuple in the HashMap. Size and timestamps are
handled by CacheMetadata, this struct only holds SLRU-specific data.
Fields§
§location: LocationWhich segment this entry is in
Trait Implementations§
impl Copy for SlruMeta
impl Eq for SlruMeta
impl StructuralPartialEq for SlruMeta
Auto Trait Implementations§
impl Freeze for SlruMeta
impl RefUnwindSafe for SlruMeta
impl Send for SlruMeta
impl Sync for SlruMeta
impl Unpin for SlruMeta
impl UnsafeUnpin for SlruMeta
impl UnwindSafe for SlruMeta
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.