pub enum StopMode {
Flag,
Exit,
}Expand description
What a stop signal does once a handler is installed.
Variants§
Flag
Only record the request, for a loop that polls stop_requested and
returns normally.
Exit
End the process at once, with status 0, as the default action would have (for modes whose threads block in receive and have no such loop).
Trait Implementations§
impl Copy for StopMode
impl Eq for StopMode
impl StructuralPartialEq for StopMode
Auto Trait Implementations§
impl Freeze for StopMode
impl RefUnwindSafe for StopMode
impl Send for StopMode
impl Sync for StopMode
impl Unpin for StopMode
impl UnsafeUnpin for StopMode
impl UnwindSafe for StopMode
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