pub enum ExitClass {
Clean,
Signal,
Panic,
Error,
}Expand description
How the process ended.
Derived from an explicit atomic set by the panic hook, the signal task, and
the clean path — never from an exit code. RunTerminationReason::Canceled
maps to exit 130, the same value the SIGINT path uses, so a code-based
derivation would report every Esc-cancelled turn as a signal.
Variants§
Clean
Ordinary successful exit.
Signal
Terminated by a signal.
Panic
Terminated by a panic.
Error
Exited non-successfully without a signal or a panic.
Implementations§
Trait Implementations§
impl Copy for ExitClass
Source§impl<'de> Deserialize<'de> for ExitClass
impl<'de> Deserialize<'de> for ExitClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExitClass
impl StructuralPartialEq for ExitClass
Auto Trait Implementations§
impl Freeze for ExitClass
impl RefUnwindSafe for ExitClass
impl Send for ExitClass
impl Sync for ExitClass
impl Unpin for ExitClass
impl UnsafeUnpin for ExitClass
impl UnwindSafe for ExitClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.