pub struct MetaCache {
pub entries: Vec<MetaCacheEntry>,
pub capacity: usize,
pub hit_threshold: f64,
pub clock: u64,
pub last_hit: bool,
}Expand description
Data structure representing meta cache.
Fields§
§entries: Vec<MetaCacheEntry>Collection of entries.
capacity: usizeCapacity for this value.
hit_threshold: f64Hit threshold for this value.
clock: u64Clock for this value.
last_hit: boolMost recent hit.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MetaCache
impl<'de> Deserialize<'de> for MetaCache
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for MetaCache
impl Freeze for MetaCache
impl Move for MetaCache
impl RefUnwindSafe for MetaCache
impl Send for MetaCachewhere
RawVecInner: Send,
impl Sync for MetaCachewhere
RawVecInner: Sync,
impl Unpin for MetaCache
impl UnsafeUnpin for MetaCache
impl UnwindSafe for MetaCachewhere
RawVecInner: UnwindSafe,
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