pd::metrics

Trait HistogramFn

pub trait HistogramFn {
    // Required method
    fn record(&self, value: f64);

    // Provided method
    fn record_many(&self, value: f64, count: usize) { ... }
}
Expand description

A histogram handler.

Required Methods§

fn record(&self, value: f64)

Records a value into the histogram.

Provided Methods§

fn record_many(&self, value: f64, count: usize)

Records a value into the histogram multiple times.

Implementations on Foreign Types§

§

impl HistogramFn for AtomicBucket<f64>

§

fn record(&self, value: f64)

§

impl HistogramFn for AtomicSamplingReservoir

§

fn record(&self, value: f64)

§

impl<T> HistogramFn for Arc<T>
where T: HistogramFn,

§

fn record(&self, value: f64)

§

impl<T> HistogramFn for Generational<T>
where T: HistogramFn,

§

fn record(&self, value: f64)

Implementors§