[][src]Trait async_speed_limit::clock::BlockingClock

pub trait BlockingClock: Clock {
    pub fn blocking_sleep(&self, dur: Duration);
}

A BlockingClock is a Clock which supports synchronous sleeping.

Required methods

pub fn blocking_sleep(&self, dur: Duration)[src]

Sleeps and blocks the current thread for the given duration.

Loading content...

Implementors

impl BlockingClock for StandardClock[src]

Loading content...