pub struct Background { /* private fields */ }
Expand description
Handle to the reactor running on a background thread.
Instances are created by calling Reactor::background
.
Implementations§
Source§impl 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§
Source§impl Debug for Background
impl Debug for Background
Auto Trait Implementations§
impl Freeze for Background
impl !RefUnwindSafe for Background
impl Send for Background
impl Sync for Background
impl Unpin for Background
impl !UnwindSafe for Background
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more