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
Source§fn clone(&self) -> ResizableStats
fn clone(&self) -> ResizableStats
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 ResizableStats
Source§impl Debug for ResizableStats
impl Debug for ResizableStats
Source§impl Default for ResizableStats
impl Default for ResizableStats
Source§fn default() -> ResizableStats
fn default() -> ResizableStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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