Skip to main content

Module future

Module future 

Source
Expand description

Future and stream utilities.

Structs§

Lazy
Future for the lazy function.
OnDropFn
Runs a callback when this guard is dropped.
OnDropFuture
Future wrapper that runs a callback if dropped before completion.

Enums§

Either
A value of one of two types.

Traits§

OnDropFutureExt
Extension trait for running a callback when a pending future is dropped.
Stream
A stream of values produced asynchronously.
TryFuture
A convenience for futures that return Result values that includes a variety of adapters tailored to such futures.

Functions§

join
Future for the join combinator, waiting for two futures to complete.
join_all
Creates a future which represents a collection of the outputs of the futures given.
lazy
Creates a new future that allows delayed execution of a closure.
select
Waits for either one of two differently-typed futures to complete.
stream_recv
Waits for and returns the next item from a stream.

Type Aliases§

BoxFuture
An owned, dynamically dispatched future.