Trait windowed_stats::experimental::clock::DurationExt
source · pub trait DurationExt {
const QUANTUM: Self;
// Required methods
fn from_quanta(quanta: Quanta) -> Self;
fn into_quanta(self) -> Quanta;
}
Required Associated Constants§
Required Methods§
sourcefn from_quanta(quanta: Quanta) -> Self
fn from_quanta(quanta: Quanta) -> Self
Constructs a Duration
from quanta.
sourcefn into_quanta(self) -> Quanta
fn into_quanta(self) -> Quanta
Converts the duration into quanta.
Object Safety§
This trait is not object safe.