Sleeper

Trait Sleeper 

Source
pub trait Sleeper {
    type Sleep: Future<Output = ()> + Send + 'static;

    // Required method
    fn sleep(&self, dur: Duration) -> Self::Sleep;
}
Available on crate feature futures only.

Required Associated Types§

Source

type Sleep: Future<Output = ()> + Send + 'static

Required Methods§

Source

fn sleep(&self, dur: Duration) -> Self::Sleep

Implementors§