pub enum StopCause {
Interrupt,
Terminate,
StdinClosed,
Requested,
}Expand description
Why the stop was triggered. The first trigger’s cause is the one reported.
Variants§
Interrupt
SIGINT, Ctrl+C or Ctrl+Break.
Terminate
SIGTERM or the console close event.
StdinClosed
This process’s stdin reached end of file: the parent went away.
Requested
The program asked for the stop.
Trait Implementations§
impl Copy for StopCause
impl Eq for StopCause
impl StructuralPartialEq for StopCause
Auto Trait Implementations§
impl Freeze for StopCause
impl RefUnwindSafe for StopCause
impl Send for StopCause
impl Sync for StopCause
impl Unpin for StopCause
impl UnsafeUnpin for StopCause
impl UnwindSafe for StopCause
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