Type Definition diem_time_service::real::RealSleep

source ·
pub type RealSleep = Sleep;

Trait Implementations§

source§

impl SleepTrait for RealSleep

source§

fn is_elapsed(&self) -> bool

Returns true if this Sleep’s requested wait duration has elapsed.
source§

fn reset(self: Pin<&mut Self>, duration: Duration)

Resets this Sleep to wait again for duration.
source§

fn reset_until(self: Pin<&mut Self>, deadline: Instant)

Reset this Sleep to wait again until the deadline.