Skip to main content

CompoundStat

Trait CompoundStat 

Source
pub trait CompoundStat: Stat {
    // Required method
    fn stats(&self) -> Vec<NamedMeasurable>;
}
Expand description

A compound stat is a stat where a single measurement and associated data structure feeds many metrics. This is the example for a histogram which has many associated percentiles.

Required Methods§

Source

fn stats(&self) -> Vec<NamedMeasurable>

Returns the named measurable child metrics this compound stat exposes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§