Module tracing::stdlib::task

1.36.0 · source ·
Expand description

Types and Traits for working with asynchronous tasks.



  • The context of an asynchronous task.
  • A RawWaker allows the implementor of a task executor to create a Waker or a LocalWaker which provides customized wakeup behavior.
  • A virtual function pointer table (vtable) that specifies the behavior of a RawWaker.
  • A Waker is a handle for waking up a task by notifying its executor that it is ready to be run.
  • ContextBuilderExperimental
    A Builder used to construct a Context instance with support for LocalWaker.
  • LocalWakerExperimental
    A LocalWaker is analogous to a Waker, but it does not implement Send or Sync.


  • Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.


  • The implementation of waking a task on an executor.
  • LocalWakeExperimental
    An analogous trait to Wake but used to construct a LocalWaker. This API works in exactly the same way as Wake, except that it uses an Rc instead of an Arc, and the result is a LocalWaker instead of a Waker.