pub trait Clock:
Send
+ Sync
+ 'static {
// Required method
fn now(&self) -> Instant;
}Expand description
Abstract monotonic clock. Implemented by RealClock (production) and
ManualClock (tests).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".