pub trait Clock:
Send
+ Sync
+ 'static {
// Required methods
fn now(&self) -> Instant;
fn sleep(
&self,
duration: Duration,
) -> Pin<Box<dyn Future<Output = Instant> + Send + 'static>>;
}Expand description
The source of time shared by delayed effects and interval subscriptions.