pub struct Delay { /* private fields */ }
Expand description

A future that completes at a specified instant in time. Instances of Delay perform no work and complete with () once the specified deadline has been reached. Delay is powered by timerfd and has a resolution of 1 nanosecond.

Implementations

Create a new Delay instance that elapses at deadline.

Returns the instant at which the future will complete.

Returns true if the Delay has elapsed

Reset the Delay instance to a new deadline.

Trait Implementations

The type of value produced on completion.

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

🔬 This is a nightly-only experimental API. (into_future)

Creates a future from a value.

The type returned in the event of a conversion error.

Performs the conversion.

The type of successful values yielded by this future

The type of failures yielded by this future

Poll this TryFuture as if it were a Future. Read more

The type returned in the event of a conversion error.

Performs the conversion.