Trait TimeSource

Source
pub trait TimeSource {
    type Instant: TimeInstant + Copy;

    // Required method
    fn now(&self) -> Self::Instant;
}
Expand description

Types implementing this trait can be used as TimeSource for RealTimeRunningAverage.

Required Associated Types§

Source

type Instant: TimeInstant + Copy

Type implementing TimeInstant for this TimeSource.

Required Methods§

Source

fn now(&self) -> Self::Instant

Return current Instant.

Implementors§