pub trait FutureTimeoutExt: Future + Sized {
    // Provided method
    fn timeout(self, timeout: Duration) -> Timeout<Self> { ... }
}

Provided Methods§

source

fn timeout(self, timeout: Duration) -> Timeout<Self>

Implementors§

source§

impl<T> FutureTimeoutExt for Twhere T: Future,