pub struct NoopMetrics;Expand description
No-op metrics implementation (default).
Trait Implementations§
Source§impl Metrics for NoopMetrics
impl Metrics for NoopMetrics
Source§fn record_latency(&self, _operation: &str, _duration_ms: f64)
fn record_latency(&self, _operation: &str, _duration_ms: f64)
Record a latency measurement for an operation.
Source§fn increment_counter(&self, _name: &str, _delta: u64)
fn increment_counter(&self, _name: &str, _delta: u64)
Increment a named counter.
Source§fn record_gauge(&self, _name: &str, _value: f64)
fn record_gauge(&self, _name: &str, _value: f64)
Record a gauge (point-in-time) value.
Auto Trait Implementations§
impl Freeze for NoopMetrics
impl RefUnwindSafe for NoopMetrics
impl Send for NoopMetrics
impl Sync for NoopMetrics
impl Unpin for NoopMetrics
impl UnsafeUnpin 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