pub trait TurnClock:
Send
+ Sync
+ Debug {
// Required method
fn now(&self) -> DateTime<Utc>;
}Expand description
Source of the runtime’s own clock, so a turn is testable without waiting.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".