[go: up one dir, main page]

Metric

Trait Metric 

Source
pub trait Metric {
    // Required method
    fn as_metric_str(&self) -> &str;
}
Expand description

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§

Source

fn as_metric_str(&self) -> &str

Implementors§