Struct tokio_reactor::Background
[−]
[src]
pub struct Background { /* fields omitted */ }Handle to the reactor running on a background thread.
Instances are created by calling Reactor::background.
Methods
impl Background[src]
pub fn handle(&self) -> &Handle[src]
Returns a reference to the reactor handle.
pub fn shutdown_on_idle(self) -> Shutdown[src]
Shutdown the reactor on idle.
Returns a future that completes once the reactor thread has shutdown.
pub fn shutdown_now(self) -> Shutdown[src]
Shutdown the reactor immediately
Returns a future that completes once the reactor thread has shutdown.
pub fn forget(self)[src]
Run the reactor on its thread until the process terminates.
Trait Implementations
impl Debug for Background[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more