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§
type Stat: DataFraction + Default
type Delta: DataFraction
Required Methods§
fn interval(&self) -> Option<Duration>
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.