pub trait EncodeMetric {
    fn encode(&self, encoder: Encoder<'_, '_>) -> Result<(), Error>;
    fn metric_type(&self) -> MetricType;
}
Expand description

Trait implemented by each metric type, e.g. Counter, to implement its encoding.

Required Methods§

Trait Implementations§

Implementations on Foreign Types§

Implementors§