SerialStatistic

Trait SerialStatistic 

Source
pub trait SerialStatistic<P>: Statistic{
    type Buffer: Clone + RingBuffer<Self::Aggregation>;

    // Required method
    fn buffer(interval: &SamplingInterval) -> Self::Buffer;
}
Expand description

A Statistic for which an in-memory ring buffer encoding is defined.

A serial statistic can be used with a TimeMatrix. A series of aggregations are stored in an instance of the defined buffer, which is typically optimized for the data semantic and data type of the statistic.

Required Associated Types§

Source

type Buffer: Clone + RingBuffer<Self::Aggregation>

Required Methods§

Source

fn buffer(interval: &SamplingInterval) -> Self::Buffer

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F, P> SerialStatistic<P> for F
where F: Statistic, F::Semantic: BufferStrategy<F::Aggregation, P>, P: InterpolationKind,

Source§

type Buffer = <<F as Statistic>::Semantic as BufferStrategy<<F as Statistic>::Aggregation, P>>::Buffer