pub struct CacheSnapshot {
pub capacity: CacheCapacity,
pub resident_bytes: usize,
pub keys: usize,
pub ranges: usize,
pub hits: u64,
pub partial_hits: u64,
pub misses: u64,
pub insertions: u64,
pub admissions_rejected_too_large: u64,
pub evictions: u64,
}Expand description
A point-in-time cache state and statistics snapshot.
Fields§
§capacity: CacheCapacityConfigured capacity.
resident_bytes: usizeTotal resident payload bytes.
keys: usizeNumber of keys with resident ranges.
ranges: usizeNumber of resident ranges.
hits: u64Fully cached reads.
partial_hits: u64Reads with some, but not all, requested bytes cached.
misses: u64Reads with none of the requested bytes cached.
insertions: u64Successfully admitted insertions.
admissions_rejected_too_large: u64Insertions rejected because the merged range was too large.
evictions: u64Ranges removed by capacity enforcement.
Trait Implementations§
Source§impl Clone for CacheSnapshot
impl Clone for CacheSnapshot
Source§fn clone(&self) -> CacheSnapshot
fn clone(&self) -> CacheSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CacheSnapshot
Source§impl Debug for CacheSnapshot
impl Debug for CacheSnapshot
impl Eq for CacheSnapshot
Source§impl PartialEq for CacheSnapshot
impl PartialEq for CacheSnapshot
impl StructuralPartialEq for CacheSnapshot
Auto Trait Implementations§
impl Freeze for CacheSnapshot
impl RefUnwindSafe for CacheSnapshot
impl Send for CacheSnapshot
impl Sync for CacheSnapshot
impl Unpin for CacheSnapshot
impl UnsafeUnpin for CacheSnapshot
impl UnwindSafe for CacheSnapshot
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