Trait async_speed_limit::clock::BlockingClock [−][src]
pub trait BlockingClock: Clock {
fn blocking_sleep(&self, dur: Duration);
}
Expand description
A BlockingClock
is a Clock
which supports synchronous sleeping.
Required methods
fn blocking_sleep(&self, dur: Duration)
fn blocking_sleep(&self, dur: Duration)
Sleeps and blocks the current thread for the given duration.