Skip to main content

Histogram

Trait Histogram 

Source
pub trait Histogram:
    Send
    + Sync
    + Debug
    + DynClone {
    // Required method
    fn add_point(&self, point: f64);
}
Expand description

A histogram which will record a series of points.

Required Methods§

Source

fn add_point(&self, point: f64)

Add a point to this histogram.

Trait Implementations§

Source§

impl MetricsFamily<Box<dyn Histogram>> for NoMetrics

Source§

fn create(&self, _: Vec<String>) -> Box<dyn Histogram>

Instantiate a metric in this family with a specific label vector. Read more
Source§

fn destroy(&self, _: &[&str])

Remove a metric in this family identified by its label values. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§