pub trait Sleep {
    fn reset(self: Pin<&mut Self>, timeout: Duration);
    fn poll_sleep(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()>;
}
Expand description

A sleep future

Required Methods§

Set the future to time out in timeout from now

Wait for the timeout to expire

Implementations on Foreign Types§

Implementors§