[][src]Module futures_util::try_future

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.

ErrInto

Future for the err_into combinator.

FlattenSink

Future for the flatten_sink combinator.

IntoFuture

Future for the into_future combinator.

MapErr

Future for the map_err combinator.

MapOk

Future for the map_ok combinator.

OrElse

Future for the or_else combinator.

TryJoin

Future for the try_join combinator, waiting for two futures to complete or for one to error.

TryJoin3

Future for the try_join3 combinator, waiting for three futures to complete or for one to error.

TryJoin4

Future for the try_join4 combinator, waiting for four futures to complete or for one to error.

TryJoin5

Future for the try_join5 combinator, waiting for five futures to complete or for one to error.

TryJoinAll

A future which takes a list of futures and resolves with a vector of the completed values or an error.

UnwrapOrElse

Future for the unwrap_or_else combinator.

Traits

TryFutureExt

Adapters specific to Result-returning futures

Functions

try_join_all

Creates a future which represents either a collection of the results of the futures given or an error.