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 Background
pub fn handle(&self) -> &Handle
[src]
pub fn handle(&self) -> &Handle
Returns a reference to the reactor handle.
pub fn shutdown_on_idle(self) -> Shutdown
[src]
pub fn shutdown_on_idle(self) -> Shutdown
Shutdown 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) -> Shutdown
Shutdown 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 Debug for Background
[src]
impl Debug for Background
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Drop for Background
[src]
impl Drop for Background
Auto Trait Implementations
impl Send for Background
impl Send for Background
impl Sync for Background
impl Sync for Background