pub struct Metrics { /* private fields */ }
Expand description
Collector of possible metrics types in cache
Implementations
sourceimpl Metrics
impl Metrics
sourcepub fn insert(&mut self, metric: MetricType, k: &u64, delta: usize)
pub fn insert(&mut self, metric: MetricType, k: &u64, delta: usize)
Insert delta for given metric type
sourcepub fn keys_inserted(&self) -> usize
pub fn keys_inserted(&self) -> usize
Collected keys inserted metrics
sourcepub fn keys_updated(&self) -> usize
pub fn keys_updated(&self) -> usize
Collected keys updated metrics
sourcepub fn keys_evicted(&self) -> usize
pub fn keys_evicted(&self) -> usize
Collected keys evicted metrics
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more