Module futures_util::future
source · Expand description
Futures
This module contains a number of functions for working with Future
s,
including the FutureExt
trait which adds methods to Future
types.
Structs§
- A handle to a
Abortable
future. - A registration handle for a
Abortable
future. Values of this type can be acquired fromAbortHandle::new
and are used in calls toAbortable::new
. - A future which can be remotely short-circuited using an
AbortHandle
. - Indicator that the
Abortable
future was aborted. - Future for the
catch_unwind
method. - Future for the
empty
function. - Future for the
flatten
method. - Stream for the
flatten_stream
method. - Future for the
fuse
method. - Future for the
inspect
method. - Stream for the
into_stream
method. - Future for the
join
function. - Future for the
join3
function. - Future for the
join4
function. - Future for the
join5
function. - Future for the
join_all
function. - Future for the
lazy
function. - Future for the
map
method. - A future representing a value which may or may not be present.
- Future for the
poll_fn
function. - Future for the
ready
function. - A future which sends its output to the corresponding
RemoteHandle
. Created byremote_handle
. - The handle to a remote future returned by
remote_handle
. - Future for the
select()
function. - Future for the
select_all
function. - Future for the
shared
method. - Future for the
then
method. - Future for the
unit_error
combinator.
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
Future
s that provides a variety of convenient adapters.
Functions§
- Creates a new
Abortable
future and aAbortHandle
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.