[go: up one dir, main page]

pub trait _: Future {
    fn timeout(self, dur: Duration) -> Timeout<Self>Notable traits for Timeout<F>impl<F: Future> Future for Timeout<F>    type Output = Result<F::Output>;
    where
        Self: Sized
, { ... }
fn timeout_at(self, deadline: Instant) -> TimeoutAt<Self>Notable traits for TimeoutAt<F>impl<F: Future> Future for TimeoutAt<F> type Output = Result<F::Output>;
    where
        Self: Sized
, { ... }
fn delay(self, dur: Duration) -> Delay<Self>Notable traits for Delay<F>impl<F: Future> Future for Delay<F> type Output = F::Output;
    where
        Self: Sized
, { ... }
fn delay_until(self, deadline: Instant) -> DelayUntil<Self>Notable traits for DelayUntil<F>impl<F: Future> Future for DelayUntil<F> type Output = F::Output;
    where
        Self: Sized
, { ... } }
Expand description

Extend Future with time-based operations.

Provided methods

Await a future or times out after a duration of time.

Await a future or times out at the given deadline.

Returns a future that delays execution for a specified time.

Returns a future that delays execution for a specified time.

Implementors