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§
Sourcetype Instant: TimeInstant + Copy
type Instant: TimeInstant + Copy
Type implementing TimeInstant for this TimeSource.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".