[][src]Crate futures_task

Tools for working with tasks.

Structs

Context

The Context of an asynchronous task.

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

A RawWaker allows the implementor of a task executor to create a Waker which provides customized wakeup behavior.

RawWakerVTable

A virtual function pointer table (vtable) that specifies the behavior of a RawWaker.

SpawnError

An error that occurred during spawning.

Waker

A Waker is a handle for waking up a task by notifying its executor that it is ready to be run.

Enums

Poll

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

Traits

LocalSpawn

The LocalSpawn is similar to Spawn, but allows spawning futures that don't implement Send.

Spawn

The Spawn trait 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 Waker which does nothing when wake() is called on it.