pub fn timed<'a, F: Future>( fut: Pin<&'a mut F>, timeout: Duration) -> Timed<'a, F, Platform>ⓘNotable traits for Timed<'a, F, T>impl<'a, F: Future, T: Timer> Future for Timed<'a, F, T> type Output = Result<F::Output, Expired<'a, F, T>>;
impl<'a, F: Future, T: Timer> Future for Timed<'a, F, T> type Output = Result<F::Output, Expired<'a, F, T>>;
Creates timed future with default Platform timer.