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

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

A BlockingClock is a Clock which supports synchronous sleeping.

Required methods

fn blocking_sleep(&self, dur: Duration)

Sleeps and blocks the current thread for the given duration.

Loading content...

Implementors

impl BlockingClock for StandardClock[src]

Loading content...