Struct CacheLevelStatistics
pub struct CacheLevelStatistics {
pub size: usize,
pub max_size: usize,
pub hits: usize,
pub misses: usize,
pub evictions: usize,
pub hit_rate: f64,
}Expand description
Multi-level cache statistics
Fields§
§size: usizeCurrent cache size
max_size: usizeMaximum cache size
hits: usizeCache hits
misses: usizeCache misses
evictions: usizeEvictions
hit_rate: f64Hit rate percentage
Trait Implementations§
§impl Clone for CacheLevelStatistics
impl Clone for CacheLevelStatistics
§fn clone(&self) -> CacheLevelStatistics
fn clone(&self) -> CacheLevelStatistics
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 moreAuto Trait Implementations§
impl Freeze for CacheLevelStatistics
impl RefUnwindSafe for CacheLevelStatistics
impl Send for CacheLevelStatistics
impl Sync for CacheLevelStatistics
impl Unpin for CacheLevelStatistics
impl UnwindSafe for CacheLevelStatistics
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