Module futures_util::future

source ·
Expand description

Futures

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

Structs§

Enums§

  • Combines two different futures, streams, or sinks having the same associated types into a single type.
  • A future that may have completed.

Traits§

  • An extension trait for Futures that provides a variety of convenient adapters.

Functions§

  • Creates a new Abortable future and a AbortHandle which can be used to stop it.
  • Creates a future which never resolves, representing a computation that never finishes.
  • Create a future that is immediately ready with an error value.
  • Joins the result of two futures, waiting for them both to complete.
  • Same as join, but with more futures.
  • Same as join, but with more futures.
  • Same as join, but with more futures.
  • Creates a future which represents a collection of the outputs of the futures given.
  • Creates a new future that allows delayed execution of a closure.
  • Wraps a future into a MaybeDone
  • Create a future that is immediately ready with a success value.
  • Creates a new future wrapping around a function returning Poll.
  • Create a future that is immediately ready with a value.
  • Waits for either one of two differently-typed futures to complete.
  • Creates a new future which will select over a list of futures.