Struct tokio_reactor::Background
source · [−]pub struct Background { /* private fields */ }
Expand description
Handle to the reactor running on a background thread.
Instances are created by calling Reactor::background
.
Implementations
sourceimpl Background
impl Background
sourcepub fn shutdown_on_idle(self) -> Shutdown
pub fn shutdown_on_idle(self) -> Shutdown
Shutdown the reactor on idle.
Returns a future that completes once the reactor thread has shutdown.
sourcepub fn shutdown_now(self) -> Shutdown
pub fn shutdown_now(self) -> Shutdown
Shutdown the reactor immediately
Returns a future that completes once the reactor thread has shutdown.
Trait Implementations
sourceimpl Debug for Background
impl Debug for Background
Auto Trait Implementations
impl !RefUnwindSafe for Background
impl Send for Background
impl Sync for Background
impl Unpin for Background
impl !UnwindSafe for Background
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more