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§

source

const QUANTUM: Self

The unit duration.

Durations are expressed in terms of this unit and so cannot express periods beyond this resolution.

Required Methods§

source

fn from_quanta(quanta: Quanta) -> Self

Constructs a Duration from quanta.

source

fn into_quanta(self) -> Quanta

Converts the duration into quanta.

Object Safety§

This trait is not object safe.

Implementors§