Struct CacheStatistics
pub struct CacheStatistics {
pub current_size: usize,
pub max_size: usize,
pub hit_count: usize,
pub miss_count: usize,
pub hit_rate: f64,
}Expand description
Cache performance statistics
Fields§
§current_size: usizeCurrent number of cached entries
max_size: usizeMaximum cache size
hit_count: usizeNumber of cache hits
miss_count: usizeNumber of cache misses
hit_rate: f64Cache hit rate percentage
Trait Implementations§
§impl Clone for CacheStatistics
impl Clone for CacheStatistics
§fn clone(&self) -> CacheStatistics
fn clone(&self) -> CacheStatistics
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 CacheStatistics
impl RefUnwindSafe for CacheStatistics
impl Send for CacheStatistics
impl Sync for CacheStatistics
impl Unpin for CacheStatistics
impl UnwindSafe for CacheStatistics
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