pub struct CacheSessionStats {
pub hits: u64,
pub misses: u64,
pub insertions: u64,
pub evictions: u64,
}Expand description
Statistics about a cache lookup session.
Fields§
§hits: u64§misses: u64§insertions: u64§evictions: u64Implementations§
Source§impl CacheSessionStats
impl CacheSessionStats
Sourcepub fn merge(&mut self, other: &CacheSessionStats)
pub fn merge(&mut self, other: &CacheSessionStats)
Merge another stats struct into this one.
Trait Implementations§
Source§impl Clone for CacheSessionStats
impl Clone for CacheSessionStats
Source§impl Debug for CacheSessionStats
impl Debug for CacheSessionStats
Auto Trait Implementations§
impl Forget for CacheSessionStats
impl Freeze for CacheSessionStats
impl Move for CacheSessionStats
impl RefUnwindSafe for CacheSessionStats
impl Send for CacheSessionStats
impl Sync for CacheSessionStats
impl Unpin for CacheSessionStats
impl UnsafeUnpin for CacheSessionStats
impl UnwindSafe for CacheSessionStats
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