Skip to main content

MonotonicClock

Trait MonotonicClock 

Source
pub trait MonotonicClock:
    Debug
    + Send
    + Sync {
    // Required method
    fn now(&self) -> Duration;
}
Expand description

Injectable monotonic time source used by execution watchdogs.

Required Methods§

Source

fn now(&self) -> Duration

Duration since an arbitrary stable origin.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§