Struct tokio_reactor::Handle[][src]

pub struct Handle { /* fields omitted */ }

A reference to a reactor.

A Handle is used for associating I/O objects with an event loop explicitly. Typically though you won't end up using a Handle that often and will instead use the default reactor for the execution context.

By default, most components bind lazily to reactors. To get this behavior when manually passing a Handle, use default().


impl Handle

Returns a handle to the current reactor.

Trait Implementations

impl Clone for Handle

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Unpark for Handle

Unblock a thread that is blocked by the associated Park handle. Read more

impl Default for Handle

Returns a "default" handle, i.e., a handle that lazily binds to a reactor.

impl Debug for Handle

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Handle

impl Sync for Handle