pub trait Clock {
// Required methods
fn now(&self) -> Timestamp;
fn wait_until(&mut self, at: Timestamp);
}Expand description
The clock a run reads, and waits on until a step’s time comes.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".