Struct cadence::SpyMetricSink
source · [−]pub struct SpyMetricSink { /* private fields */ }
Expand description
MetricSink
implementation that writes all metrics to the Sender
half of
a channel while callers are given ownership of the Receiver
half.
This is not a general purpose sink, rather it’s a sink meant for verifying
metrics written during the course of integration tests. By default, the channel
used is unbounded. The channel size can be limited using the with_capacity
method.
Each metric is sent to the underlying channel when the .emit()
method is
called, in the thread of the caller.
Implementations
Trait Implementations
sourceimpl Debug for SpyMetricSink
impl Debug for SpyMetricSink
sourceimpl MetricSink for SpyMetricSink
impl MetricSink for SpyMetricSink
Auto Trait Implementations
impl RefUnwindSafe for SpyMetricSink
impl Send for SpyMetricSink
impl Sync for SpyMetricSink
impl Unpin for SpyMetricSink
impl UnwindSafe for SpyMetricSink
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