pub trait SerialStatistic<P>: Statisticwhere
P: InterpolationKind,{
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§
type Buffer: Clone + RingBuffer<Self::Aggregation>
Required Methods§
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.