Module futures_util::try_future[][src]

Futures

This module contains a number of functions for working with Futures, including the FutureExt trait which adds methods to Future types.

Structs

AndThen

Future for the and_then combinator, chaining a computation onto the end of another future which completes successfully.

ErrInto

Future for the err_into combinator, changing the error type of a future.

FlattenSink

Future for the flatten_sink combinator, flattening a future-of-a-sink to get just the result of the final sink as a sink.

IntoFuture

Converts a TryFuture into a normal Future

MapErr

Future for the map_err combinator, changing the type of a future.

MapOk

Future for the map_ok combinator, changing the type of a future.

OrElse

Future for the or_else combinator, chaining a computation onto the end of a future which fails with an error.

UnwrapOrElse

Future for the unwrap_or_else combinator. It unwraps the result, returning the content of the Ok as Output or if the value is an Err then it calls op with its value.

Traits

TryFutureExt

Adapters specific to Result-returning futures