pub struct CacheMetrics {
pub hits: u64,
pub misses: u64,
pub negative_hits: u64,
pub evictions: u64,
pub expirations: u64,
pub background_refreshes: u64,
pub size: usize,
}Expand description
Cache metrics.
Fields§
§hits: u64Total cache hits.
misses: u64Total cache misses.
negative_hits: u64Negative cache hits.
evictions: u64Evictions due to capacity.
expirations: u64Evictions due to TTL expiration.
background_refreshes: u64Background refreshes triggered.
size: usizeCurrent cache size.
Implementations§
Trait Implementations§
Source§impl Clone for CacheMetrics
impl Clone for CacheMetrics
Source§fn clone(&self) -> CacheMetrics
fn clone(&self) -> CacheMetrics
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 CacheMetrics
impl Debug for CacheMetrics
Source§impl Default for CacheMetrics
impl Default for CacheMetrics
Source§fn default() -> CacheMetrics
fn default() -> CacheMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CacheMetrics
impl RefUnwindSafe for CacheMetrics
impl Send for CacheMetrics
impl Sync for CacheMetrics
impl Unpin for CacheMetrics
impl UnwindSafe for CacheMetrics
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