Struct tokio_io_pool::Handle[][src]

pub struct Handle { /* fields omitted */ }

A handle to a Runtime that allows spawning additional futures from other threads.

Methods

impl Handle
[src]

Spawn a future onto a runtime in the pool.

This spawns the given future onto a single thread runtime's executor. That thread is then responsible for polling the future until it completes.

Spawn all futures yielded by a stream onto the pool.

This produces a future that accepts futures from a Stream and spawns them all onto the pool round-robin.

Trait Implementations

impl Clone for Handle
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Handle
[src]

Formats the value using the given formatter. Read more

impl Executor for Handle
[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

Auto Trait Implementations

impl Send for Handle

impl !Sync for Handle