Module future
Available on crate feature
future only.Expand description
Async future utilities.
This module re-exports commonly used future traits and types from the core
library and the futures crate.
Unlike hbrt::task, this module provides pure composition
without relying on an executor.
Structs§
- Pending
- Creates a future which never resolves, representing a computation that never finishes.
- PollFn
- A Future that wraps a function returning
Poll. - Ready
- A future that is immediately ready with a value.
Traits§
- Future
- A future represents an asynchronous computation, commonly obtained by use of
async. - Future
Ext - An extension trait for
Futures that provides a variety of convenient adapters. - Into
Future - Conversion into a
Future. - TryFuture
- A convenience for futures that return
Resultvalues that includes a variety of adapters tailored to such futures. - TryFuture
Ext - Adapters specific to
Result-returning futures