pub struct Shutdown { /* private fields */ }Expand description
Handle returned from Daemon::spawn. Holding it keeps the
daemon running; dropping it does not kill the daemon — tests
that want a guaranteed shutdown should call
Shutdown::shutdown and .await Shutdown::join.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Shutdown
impl !UnwindSafe for Shutdown
impl Forget for Shutdown
impl Freeze for Shutdown
impl Move for Shutdown
impl Send for Shutdown
impl Sync for Shutdown
impl Unpin for Shutdown
impl UnsafeUnpin for Shutdown
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