backon

Trait BlockingSleeper

Source
pub trait BlockingSleeper: 'static {
    // Required method
    fn sleep(&self, dur: Duration);
}
Expand description

A sleeper is used sleep for a specified duration.

Required Methods§

Source

fn sleep(&self, dur: Duration)

sleep for a specified duration.

Implementors§

Source§

impl BlockingSleeper for StdSleeper

Available on crate feature std-blocking-sleep only.
Source§

impl<F: Fn(Duration) + 'static> BlockingSleeper for F

All Fn(Duration) implements Sleeper.