[][src]Module futures_async_combinators::future

Functions

and_then

Executes another future after this one resolves successfully. The success value is passed to a closure to create this subsequent future.

err_into

Maps this future's Error to a new error type using the Into trait.

flatten

Flatten the execution of this future when the successful result of this future is itself another future.

flatten_stream

Flatten the execution of this future when the successful result of this future is a stream.

inspect

Do something with the output of a future before passing it on.

into_stream

Convert this future into a single element stream.

map

Map this future's output to a different type, returning a new future of the resulting type.

map_err

Maps this future's error value to a different value.

map_ok

Maps this future's success value to a different value.

or_else

Executes another future if this one resolves to an error. The error value is passed to a closure to create this subsequent future.

poll_fn

Creates a new future wrapping around a function returning Poll.

ready

Create a future that is immediately ready with a value.

then

Chain on a computation for when a future finished, passing the result of the future to the provided closure f.

unwrap_or_else

Unwraps this future's ouput, producing a future with this future's Ok type as its Output type.