Struct running_average::Measurement[][src]

pub struct Measurement<T> { /* fields omitted */ }

Represent result of the calculation of running average

Methods

impl<T> Measurement<T>
[src]

Returns pointer to internal value of the measurement which is sum of all samples within time window

Returns internal value of the measurement which is sum of all samples within time window consuming self

Calculates actual running average value based on sum of all samples and width of the time window

Calculates actual running average value based on sum of all samples and width of the time window consuming self

Trait Implementations

impl<T: Debug> Debug for Measurement<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Display for Measurement<T> where
    T: Clone + Display + ToRate,
    <T as ToRate>::Output: Into<f64>, 
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Measurement<T> where
    T: Send

impl<T> Sync for Measurement<T> where
    T: Sync