Struct alloc::task::LocalTaskObj[][src]

pub struct LocalTaskObj { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

A custom trait object for polling tasks, roughly akin to Box<Future<Output = ()>>. Contrary to TaskObj, LocalTaskObj does not have a Send bound.

Methods

impl LocalTaskObj
[src]

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Create a LocalTaskObj from a custom trait object representation.

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Converts the LocalTaskObj into a TaskObj To make this operation safe one has to ensure that the UnsafeTask instance from which this LocalTaskObj was created actually implements Send.

Trait Implementations

impl Drop for LocalTaskObj
[src]

Executes the destructor for this type. Read more

impl Future for LocalTaskObj
[src]

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

The result of the Future.

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

impl Debug for LocalTaskObj
[src]

Formats the value using the given formatter. Read more

impl From<TaskObj> for LocalTaskObj
[src]

Performs the conversion.

impl<F: Future<Output = ()> + 'static> From<PinBox<F>> for LocalTaskObj
[src]

Performs the conversion.

impl<F: Future<Output = ()> + 'static> From<Box<F>> for LocalTaskObj
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for LocalTaskObj

impl !Sync for LocalTaskObj