pub trait Clock:
Send
+ Sync
+ 'static {
// Required methods
fn now(&self) -> Instant;
fn utc_now(&self) -> Timestamp;
}Expand description
A source of monotonic time.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".