[][src]Trait cadence::Metric

pub trait Metric {
    fn as_metric_str(&self) -> &str;
}

Trait for metrics to expose Statsd metric string slice representation.

Implementing metrics know how to turn themselves into one of the supported types of metrics as defined in the Statsd spec.

Required methods

fn as_metric_str(&self) -> &str

Loading content...

Implementors

impl Metric for Counter[src]

impl Metric for Gauge[src]

impl Metric for Histogram[src]

impl Metric for Meter[src]

impl Metric for Set[src]

impl Metric for Timer[src]

Loading content...