Trait backoff::future::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§