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§

source

fn blocking_sleep(&self, dur: Duration)

Sleeps and blocks the current thread for the given duration.

Implementors§