pub trait Aggregation: Debug + Any + Send + Sync {
    // Required method
    fn as_any(&self) -> &(dyn Any + 'static);
}
Available on crate feature metrics only.
Expand description

The store of data reported by an Instrument.

It will be one of: Gauge, Sum, or Histogram.

Required Methods§

source

fn as_any(&self) -> &(dyn Any + 'static)

Support downcasting

Implementors§

source§

impl<T> Aggregation for Gauge<T>where T: Debug + Send + Sync + 'static,

source§

impl<T> Aggregation for Histogram<T>where T: Debug + Send + Sync + 'static,

source§

impl<T> Aggregation for Sum<T>where T: Debug + Send + Sync + 'static,