pub struct ExitGuard<T>(/* private fields */);
Expand description
A guard for the exit handler. When dropped, the exit guard will be dropped. It might also be dropped on Ctrl-C.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ExitGuard<T>
impl<T> RefUnwindSafe for ExitGuard<T>
impl<T> Send for ExitGuard<T>where
T: Send,
impl<T> Sync for ExitGuard<T>where
T: Send,
impl<T> Unpin for ExitGuard<T>
impl<T> UnwindSafe for ExitGuard<T>
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