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§
source§impl Clone for NopMetricSink
impl Clone for NopMetricSink
source§fn clone(&self) -> NopMetricSink
fn clone(&self) -> NopMetricSink
Returns a copy 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 Debug for NopMetricSink
impl Debug 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§
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