Macros§
- declare_
raw_ waker_ vtable - Declare a
RawWakerVTablefor a specificUnsafeWakeabletype. - derive_
arc_ unsafe_ wakeable - Helper macro for the common
Arc<T>-backed case. - derive_
unsafe_ wakeable_ vtable - Derive an
UnsafeWakeableVTablefor a concrete type that implementsUnsafeWakeableTask.
Structs§
- Registered
Task - Safer wrapper that couples a task pointer with the key used to resolve its vtable.
- Smart
Waker Ptr - Cheap wrapper for
Arc<T>+ aRawWakerVTable. - Unsafe
Wakeable Ptr - Thin pointer + vtable pair.
- Unsafe
WakeableV Table - Function-pointer vtable for
UnsafeWakeableTask. - VTable
Key - Key for identifying which vtable to use for a given task kind.
- VTable
Registry - Global-ish registry of task vtables.
Statics§
- GLOBAL_
VTABLE_ REGISTRY - One global registry (optional; you can ignore it and build your own).
Traits§
- Unsafe
Wakeable - Safety
- Unsafe
Wakeable Task - Trait describing an object that can be polled + woken + dropped via a manual vtable.
Functions§
- raw_
waker_ from_ ptr - Build a
RawWakerfrom a raw pointer and pre-declared vtable. - waker_
from_ arc - Build a
Wakerfrom anArc<T>+ vtable.