Expand description
Future and stream utilities.
Structs§
- Lazy
- Future for the
lazyfunction. - OnDrop
Fn - Runs a callback when this guard is dropped.
- OnDrop
Future - Future wrapper that runs a callback if dropped before completion.
Enums§
- Either
- A value of one of two types.
Traits§
- OnDrop
Future Ext - 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
Resultvalues that includes a variety of adapters tailored to such futures.
Functions§
- join
- Future for the
joincombinator, 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.