Skip to main content

MonotonicClock

Trait MonotonicClock 

Source
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§

Source

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".

Implementors§