pub struct ResizableStats {
pub hits: u64,
pub misses: u64,
pub evictions: u64,
}Expand description
Point-in-time stats sample from a registered cache.
All counters are monotonic-since-construction. The policy compares the delta between consecutive snapshots, so the absolute values only need to be consistent within a single sample.
Fields§
§hits: u64Successful lookups served from the cache.
misses: u64Lookups that missed and required falling back to the inner store.
evictions: u64Total evictions over the cache’s lifetime.
Implementations§
Trait Implementations§
Source§impl Clone for ResizableStats
impl Clone for ResizableStats
impl Copy for ResizableStats
Source§impl Debug for ResizableStats
impl Debug for ResizableStats
Auto Trait Implementations§
impl Forget for ResizableStats
impl Freeze for ResizableStats
impl RefUnwindSafe for ResizableStats
impl Send for ResizableStats
impl Sync for ResizableStats
impl Unpin for ResizableStats
impl UnsafeUnpin for ResizableStats
impl UnwindSafe for ResizableStats
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