pub struct MemStats {
pub hits: u64,
pub misses: u64,
pub expired: u64,
pub inserted: u64,
pub evicted: u64,
pub evicted_bytes: u64,
pub too_large: u64,
pub entries: u64,
pub bytes: u64,
}Expand description
Counters for get_server_stats (MCP-09).
Fields§
§hits: u64Lookups served from the cache.
misses: u64Lookups that found nothing.
expired: u64Entries dropped because they were older than the TTL.
inserted: u64Entries added.
evicted: u64Entries dropped to stay under max_bytes.
evicted_bytes: u64Bytes reclaimed by those evictions.
too_large: u64Entries never stored because one of them exceeds the whole budget.
entries: u64Live values, filled in by MemCache::stats.
bytes: u64Live retained bytes, filled in by MemCache::stats.
Trait Implementations§
impl Copy for MemStats
impl Eq for MemStats
impl StructuralPartialEq for MemStats
Auto Trait Implementations§
impl Freeze for MemStats
impl RefUnwindSafe for MemStats
impl Send for MemStats
impl Sync for MemStats
impl Unpin for MemStats
impl UnsafeUnpin for MemStats
impl UnwindSafe for MemStats
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more