pub trait MonotonicClock: Send + Sync {
// Required method
fn now_monotonic(&self) -> Result<MonotonicTimestamp>;
}Expand description
Object-safe source of correctness-safe elapsed-time observations.
Required Methods§
Sourcefn now_monotonic(&self) -> Result<MonotonicTimestamp>
fn now_monotonic(&self) -> Result<MonotonicTimestamp>
Observes a monotonic timestamp.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".