Skip to main content

Metric

Trait Metric 

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

Super trait representing an abstract Prometheus metric.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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