pub trait AsyncLocalSleep: Future<Output = Self::Instant> {
type Instant: Instant;
// Required method
fn reset(self: Pin<&mut Self>, deadline: Self::Instant);
}Available on crate feature
time only.Expand description
Like AsyncSleep, but does not requires Send.
Required Associated Types§
Required Methods§
Implementors§
Source§impl AsyncLocalSleep for AsyncIoSleep
Available on crate feature async-io only.
impl AsyncLocalSleep for AsyncIoSleep
Available on crate feature
async-io only.Source§impl AsyncLocalSleep for TokioSleep
Available on crate feature tokio only.
impl AsyncLocalSleep for TokioSleep
Available on crate feature
tokio only.