FutureExt

Trait FutureExt 

Source
pub trait FutureExt: Future {
    // Provided method
    fn timeout_at<T>(self, target: T) -> TimeoutAt<Self> 
       where Self: Sized,
             T: Into<Deadline> { ... }
}
Expand description

Extend the Future trait with the until method.

Provided Methods§

Source

fn timeout_at<T>(self, target: T) -> TimeoutAt<Self>
where Self: Sized, T: Into<Deadline>,

Run a future until it resolves, or until a deadline is hit.

Implementors§

Source§

impl<F: Future> FutureExt for F