pub trait Runtime {
    type Sleep: Sleep;
    type Instant: Instant;

    fn create_sleep(&self, timeout: Duration) -> Self::Sleep;
    fn now(&self) -> Self::Instant;
}
Expand description

Async runtime

Required Associated Types§

Required Methods§

Implementors§