Struct tokio_current_thread::TaskExecutor[][src]

pub struct TaskExecutor { /* fields omitted */ }

Executes futures on the current thread.

All futures executed using this executor will be executed on the current thread. As such, run will wait for these futures to complete before returning.

For more details, see the module level documentation.

Methods

impl TaskExecutor
[src]

Returns an executor that executes futures on the current thread.

The user of TaskExecutor must ensure that when a future is submitted, that it is done within the context of a call to run.

For more details, see the module level documentation.

Spawn a future onto the current CurrentThread instance.

Trait Implementations

impl Debug for TaskExecutor
[src]

Formats the value using the given formatter. Read more

impl Clone for TaskExecutor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Executor for TaskExecutor
[src]

Spawns a future object to run on this executor. Read more

Provides a best effort hint to whether or not spawn will succeed. Read more

impl<F> Executor<F> for TaskExecutor where
    F: Future<Item = (), Error = ()> + 'static, 
[src]

Spawns a future to run on this Executor, typically in the "background". Read more

Auto Trait Implementations

impl !Send for TaskExecutor

impl !Sync for TaskExecutor