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]
impl Backgroundpub fn handle(&self) -> &Handle[src]
pub fn handle(&self) -> &HandleReturns a reference to the reactor handle.
pub fn shutdown_on_idle(self) -> Shutdown[src]
pub fn shutdown_on_idle(self) -> ShutdownShutdown the reactor on idle.
Returns a future that completes once the reactor thread has shutdown.
pub fn shutdown_now(self) -> Shutdown[src]
pub fn shutdown_now(self) -> ShutdownShutdown the reactor immediately
Returns a future that completes once the reactor thread has shutdown.
pub fn forget(self)[src]
pub fn forget(self)Run the reactor on its thread until the process terminates.
Trait Implementations
impl Drop for Background[src]
impl Drop for Backgroundimpl Debug for Background[src]
impl Debug for BackgroundAuto Trait Implementations
impl Send for Background
impl Send for Backgroundimpl Sync for Background
impl Sync for Background