Crate futures_task
Tools for working with tasks.
Structs
- Context
-
FutureObj
A custom trait object for polling futures, roughly akin to
Box<dyn Future<Output = T> + Send + 'a>. -
LocalFutureObj
A custom trait object for polling futures, roughly akin to
Box<dyn Future<Output = T> + 'a>. - RawWaker
- RawWakerVTable
- SpawnError An error that occurred during spawning.
- Waker
-
WakerRef
A
Wakerthat is only valid for a given lifetime.
Enums
Traits
- ArcWake A way of waking up a specific task.
-
LocalSpawn
The
LocalSpawnis similar toSpawn, but allows spawning futures that don't implementSend. -
Spawn
The
Spawntrait allows for pushing futures onto an executor that will run them to completion. -
UnsafeFutureObj
A custom implementation of a future trait object for
FutureObj, providing a vtable with drop support.
Functions
-
noop_waker
Create a new
Wakerwhich does nothing whenwake()is called on it. -
noop_waker_ref
Get a static reference to a
Wakerwhich does nothing whenwake()is called on it. -
waker
Creates a
Wakerfrom anArc<impl ArcWake>. -
waker_ref
Creates a reference to a
Wakerfrom a reference toArc<impl ArcWake>.