pub struct NopMetricSink;
Expand description
Implementation of a MetricSink
that discards all metrics.
Useful for disabling metric collection or unit tests.
Trait Implementations§
Source§impl Clone for NopMetricSink
impl Clone for NopMetricSink
Source§fn clone(&self) -> NopMetricSink
fn clone(&self) -> NopMetricSink
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NopMetricSink
impl Debug for NopMetricSink
Auto Trait Implementations§
impl Freeze for NopMetricSink
impl RefUnwindSafe for NopMetricSink
impl Send for NopMetricSink
impl Sync for NopMetricSink
impl Unpin for NopMetricSink
impl UnwindSafe for NopMetricSink
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