pub struct BufferStats {
pub hits: u64,
pub misses: u64,
pub evictions: u64,
pub resident_pages: u64,
pub resident_bytes: u64,
pub capacity_bytes: u64,
}Expand description
A snapshot of cache activity, for metrics. hits / (hits + misses) is the
hit ratio, the primary read performance signal.
Fields§
§hits: u64§misses: u64§evictions: u64§resident_pages: u64Records currently cached.
resident_bytes: u64Bytes charged by the cached records.
capacity_bytes: u64Configured capacity in bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BufferStats
impl RefUnwindSafe for BufferStats
impl Send for BufferStats
impl Sync for BufferStats
impl Unpin for BufferStats
impl UnsafeUnpin for BufferStats
impl UnwindSafe for BufferStats
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