penumbra_sdk_funding::component::metrics

Trait HistogramFn

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

    // Provided method
    fn record_many(&self, value: f64, count: usize) { ... }
}
Available on crate feature component only.
Expand description

A histogram handler.

Required Methods§

Source

fn record(&self, value: f64)

Records a value into the histogram.

Provided Methods§

Source

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

Records a value into the histogram multiple times.

Implementations on Foreign Types§

Source§

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

Source§

fn record(&self, value: f64)

Implementors§