Trait metered::metric::Histogram[][src]

pub trait Histogram: Clear + Serialize {
    fn with_bound(max_value: u64) -> Self;
fn record(&self, value: u64); }

A trait for Histograms

Required methods

fn with_bound(max_value: u64) -> Self[src]

Build a new histogram with the given max bounds

fn record(&self, value: u64)[src]

Record a value to the histogram.

It will saturate if the value is higher than the histogram’s max_value.

Loading content...

Implementations on Foreign Types

impl Histogram for RefCell<HdrHistogram>[src]

Loading content...

Implementors

impl Histogram for AtomicHdrHistogram[src]

Loading content...