pub trait Clock {
// Required method
fn now(&self) -> Duration;
}Expand description
Time as the UI sees it. Apps use real time; tests use a manual clock.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".