StatFlowSpec

Trait StatFlowSpec 

Source
pub trait StatFlowSpec: DataFraction {
    type Stat: DataFraction + Default;
    type Delta: DataFraction;

    // Required methods
    fn interval(&self) -> Option<Duration>;
    fn apply(stat: &mut Self::Stat, delta: Self::Delta);
}
Expand description

It’s like meta, but uses pulling for handling intensive load.

Required Associated Types§

Required Methods§

Source

fn interval(&self) -> Option<Duration>

Source

fn apply(stat: &mut Self::Stat, delta: Self::Delta)

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§