Module futures_util::task [−][src]
Tools for working with tasks.
This module contains:
Spawn
, a trait for spawning new tasks.Context
, a context of an asynchronous task, including a handle for waking up the task.Waker
, a handle for waking up a task.
The remaining types and traits in the module are used for implementing executors or dealing with synchronization issues around task wakeup.
Structs
AtomicWaker | A synchronization primitive for task wakeup. |
Context | The |
FutureObj | A custom trait object for polling futures, roughly akin to
|
LocalFutureObj | A custom trait object for polling futures, roughly akin to
|
RawWaker | A |
RawWakerVTable | A virtual function pointer table (vtable) that specifies the behavior
of a |
SpawnError | An error that occurred during spawning. |
Waker | A |
WakerRef | A |
Enums
Poll | Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead. |
Traits
ArcWake | A way of waking up a specific task. |
LocalSpawn | The |
LocalSpawnExt | Extension trait for |
Spawn | The |
SpawnExt | Extension trait for |
UnsafeFutureObj | A custom implementation of a future trait object for |
Functions
noop_waker | Create a new |
noop_waker_ref | Get a static reference to a |
waker | Creates a |
waker_ref | Creates a reference to a |