pub struct NoOpMetrics;Expand description
Default metrics implementation (no-op).
Trait Implementations§
Source§impl CacheMetrics for NoOpMetrics
impl CacheMetrics for NoOpMetrics
Source§fn record_hit(&self, _key: &str, _duration: Duration)
fn record_hit(&self, _key: &str, _duration: Duration)
Record a cache hit.
Source§fn record_miss(&self, _key: &str, _duration: Duration)
fn record_miss(&self, _key: &str, _duration: Duration)
Record a cache miss.
Source§fn record_set(&self, _key: &str, _duration: Duration)
fn record_set(&self, _key: &str, _duration: Duration)
Record a cache set operation.
Source§fn record_delete(&self, _key: &str, _duration: Duration)
fn record_delete(&self, _key: &str, _duration: Duration)
Record a cache delete operation.
Source§fn record_error(&self, _key: &str, _error: &str)
fn record_error(&self, _key: &str, _error: &str)
Record an error.
Source§impl Clone for NoOpMetrics
impl Clone for NoOpMetrics
Source§fn clone(&self) -> NoOpMetrics
fn clone(&self) -> NoOpMetrics
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 Default for NoOpMetrics
impl Default for NoOpMetrics
Source§fn default() -> NoOpMetrics
fn default() -> NoOpMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoOpMetrics
impl RefUnwindSafe for NoOpMetrics
impl Send for NoOpMetrics
impl Sync for NoOpMetrics
impl Unpin for NoOpMetrics
impl UnwindSafe for NoOpMetrics
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