[][src]Module af_lib::future

Utilities for working with futures and async logic.

Structs

Context

The Context of an asynchronous task.

MapErr

A future returned from TryFutureExt::map_err().

Enums

Poll

Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.

Traits

Future

A future represents an asynchronous computation.

TryFuture

A Future that returns a result.

TryFutureExt

Extension methods for futures that return a result.

Functions

catch_unwind

Waits for a future to be ready or panic.

forever

Waits forever.

poll

Polls a future and returns its result if it is ready.

race

Waits for one of two futures to be ready and returns its result.

try_resolve

Polls the future once then drops it, returning the output if the future was ready.

Attribute Macros

boxed

Modifies an async function to return a Box<dyn Future + Send>.

boxed_local

Modifies an async function to return a Box<dyn Future>.