prometheus_client::registry

Trait Metric

Source
pub trait Metric:
    EncodeMetric
    + Send
    + Sync
    + Debug
    + 'static { }
Expand description

Super trait representing an abstract Prometheus metric.

Implementors§

Source§

impl<T> Metric for T
where T: EncodeMetric + Send + Sync + Debug + 'static,