Trait async_speed_limit::clock::BlockingClock
source · pub trait BlockingClock: Clock {
// Required method
fn blocking_sleep(&self, dur: Duration);
}Expand description
A BlockingClock is a Clock which supports synchronous sleeping.
Required Methods§
sourcefn blocking_sleep(&self, dur: Duration)
fn blocking_sleep(&self, dur: Duration)
Sleeps and blocks the current thread for the given duration.