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()
.
Methods
impl Handle
[src]
Trait Implementations
impl Default for Handle
[src]
fn default() -> Handle
[src]
Returns a "default" handle, i.e., a handle that lazily binds to a reactor.
impl Unpark for Handle
[src]
impl Debug for Handle
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more