pub trait Clock {
// Required method
fn now(&mut self) -> Duration;
}Expand description
A monotonic clock reading, injectable so StartupSpans’s deltas are
deterministically testable without a real clock. Only differences
between successive readings are meaningful — the absolute value has no
defined epoch.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".