Struct cadence::NopMetricSink
source · [−]pub struct NopMetricSink;
Expand description
Implementation of a MetricSink
that discards all metrics.
Useful for disabling metric collection or unit tests.
Trait Implementations
sourceimpl Clone for NopMetricSink
impl Clone for NopMetricSink
sourcefn clone(&self) -> NopMetricSink
fn clone(&self) -> NopMetricSink
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NopMetricSink
impl Debug for NopMetricSink
sourceimpl MetricSink for NopMetricSink
impl MetricSink for NopMetricSink
Auto Trait Implementations
impl RefUnwindSafe for NopMetricSink
impl Send for NopMetricSink
impl Sync for NopMetricSink
impl Unpin for NopMetricSink
impl UnwindSafe for NopMetricSink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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