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