Expand description
Utilities for futures
Structs§
- Lazy
- Future for the
lazy
function. - OnDrop
Fn - Execute fn during drop
- OnDrop
Future
Enums§
- Either
- Combines two different futures, streams, or sinks having the same associated types into a single type.
- Ready
- A future representing a value that is immediately ready.
Traits§
- OnDrop
Future Ext - Trait adds future on_drop support
- 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 - Creates a future that resolves to the next item in the stream.
Type Aliases§
- BoxFuture
- An owned dynamically typed Future for use in cases where you can’t statically type your result or need to add some indirection.