pub struct CacheSnapshot {
pub hits: u64,
pub misses: u64,
pub evictions: u64,
pub errors: u64,
}Expand description
A point-in-time read of cache metrics.
Fields§
§hits: u64§misses: u64§evictions: u64§errors: u64Implementations§
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 moreSource§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