Expand description
Common Future types and utilities.
Structs§
Enums§
- Poll
- Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.
Traits§
- Future
- A future represents an asynchronous computation, commonly obtained by use of
async. - TryFuture
- A
Futurethat returns a result. - TryFuture
Ext - Extension methods for futures that return a result.
Functions§
- catch_
unwind - Waits for a future to be ready or panic.
- forever
- Waits forever.
- poll
- Polls a future and returns its result if it is ready.
- race
- Waits for one of two futures to be ready and returns its result.
- try_
resolve - Polls the future once then drops it, returning the output if the future was ready.
Attribute Macros§
- boxed
- Modifies an
asyncfunction to return aBox<dyn Future + Send>. - boxed_
local - Modifies an
asyncfunction to return aBox<dyn Future>.