Struct cadence::NopMetricSink [] [src]

pub struct NopMetricSink;

Implementation of a MetricSink that discards all metrics.

Useful for disabling metric collection or unit tests.

Trait Implementations

impl MetricSink for NopMetricSink
[src]

fn emit(&self, metric: &str) -> Result<usize>

Send the Statsd metric using this sink and return the number of bytes written or an I/O error. Read more