Expand description
Types and Traits for working with asynchronous tasks.
Macros§
Structs§
- Context
- The context of an asynchronous task.
- RawWaker
- A
RawWakerallows the implementor of a task executor to create aWakeror aLocalWakerwhich provides customized wakeup behavior. - RawWakerV
Table - A virtual function pointer table (vtable) that specifies the behavior
of a
RawWaker. - Waker
- A
Wakeris a handle for waking up a task by notifying its executor that it is ready to be run. - Context
Builder Experimental - A Builder used to construct a
Contextinstance with support forLocalWaker. - Local
Waker Experimental - A
LocalWakeris analogous to aWaker, but it does not implementSendorSync.
Enums§
- Poll
- Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.
Traits§
- Wake
target_has_atomic=ptr - The implementation of waking a task on an executor.
- Local
Wake Experimental - An analogous trait to
Wakebut used to construct aLocalWaker.
Functions§
- local_
waker_ fn Experimental - Converts a closure into a
LocalWaker. - waker_
fn Experimental target_has_atomic=ptr - Converts a closure into a
Waker.