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