pub trait TimestampProvider {
type Instant;
// Required method
fn now(&self) -> Self::Instant;
}Expand description
Trait for adapters that provide current time information
Enables timing information for timestamping, performance measurement, and scheduling.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".