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

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

Build a new histogram with the given max bounds

fn record(&self, value: u64)

Record a value to the histogram.

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

Loading content...

Implementors

impl Histogram for AtomicHdrHistogram[src]

Loading content...