# Crate futures_task [−] [src]

Tools for working with tasks.

## Re-exports

`pub use core::task::Context;`
`pub use core::task::Poll;`
`pub use core::task::Waker;`
`pub use core::task::RawWaker;`
`pub use core::task::RawWakerVTable;`

## Structs

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>`.
SpawnError | An error that occurred during spawning.

## 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.
noop_waker_ref | Get a static reference to a `Waker` which does nothing when `wake()` is called on it.