[−][src]Struct cadence::SpyMetricSink
MetricSink
implementation that writes all metrics to a shared Write
instance that callers retain a reference to.
This is not a general purpose sink, rather it's a sink meant for verifying
metrics written during the course of integration tests. Due to the requirement
that callers retain a shared reference to the underlying Write
implementation,
this sink uses more locking (mutexes) than other sinks in Cadence. Thus, it
should not be used in production, only testing.
Each metric is sent to the underlying writer when the .emit()
method is
called, in the thread of the caller.
Implementations
impl SpyMetricSink
[src]
Trait Implementations
impl Debug for SpyMetricSink
[src]
impl MetricSink for SpyMetricSink
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,