pub struct CacheMetrics {
pub hits_total: AtomicU64,
pub misses_total: AtomicU64,
pub evictions_total: AtomicU64,
}Fields§
§hits_total: AtomicU64§misses_total: AtomicU64§evictions_total: AtomicU64Implementations§
Source§impl CacheMetrics
impl CacheMetrics
pub fn snapshot(&self) -> CacheMetricsSnapshot
Trait Implementations§
Source§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 UnsafeUnpin 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