pub trait Clock: Send + Sync {
// Required methods
fn now(&self) -> Time;
fn sleep(&self, d: Duration);
fn wait_until(&self, t: Time);
// Provided method
fn await_init(&self) { ... }
}
pub trait Clock: Send + Sync {
// Required methods
fn now(&self) -> Time;
fn sleep(&self, d: Duration);
fn wait_until(&self, t: Time);
// Provided method
fn await_init(&self) { ... }
}