Trait TimedExt

Source
pub trait TimedExt: Sized + Future {
    // Provided method
    fn timed<F>(self, f: F) -> Timed<Self, F> 
       where F: Fn(&Self::Output, Duration) { ... }
}

Provided Methods§

Source

fn timed<F>(self, f: F) -> Timed<Self, F>
where F: Fn(&Self::Output, Duration),

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F: Future> TimedExt for F