[][src]Trait witchcraft_metrics::Reservoir

pub trait Reservoir: 'static + Sync + Send {
    pub fn update(&self, value: i64);
pub fn snapshot(&self) -> Box<dyn Snapshot>; }

A statistically representative subset of a set of values.

Required methods

pub fn update(&self, value: i64)[src]

Adds a value to the reservoir.

pub fn snapshot(&self) -> Box<dyn Snapshot>[src]

Returns a snapshot of statistics about the values in the reservoir.

Loading content...

Implementors

impl Reservoir for ExponentiallyDecayingReservoir[src]

Loading content...