backoff::future

Trait Sleeper

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

    // Required method
    fn sleep(&self, dur: Duration) -> Self::Sleep;
}

Required Associated Types§

Source

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

Required Methods§

Source

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

Implementors§