pub enum ExitReason {
Normal,
Kill,
Ignore,
Custom(String),
}Expand description
Represents the reason a process exits.
Variants§
Normal
Exited due to normal reasons, function ended, or manually stopped.
Kill
Forceful kill reason.
Ignore
Ignored reason.
Custom(String)
Custom exit reason.
Implementations§
Source§impl ExitReason
impl ExitReason
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for ExitReason
impl<'__de, __Context> BorrowDecode<'__de, __Context> for ExitReason
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for ExitReason
impl Clone for ExitReason
Source§fn clone(&self) -> ExitReason
fn clone(&self) -> ExitReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExitReason
impl Debug for ExitReason
Source§impl<__Context> Decode<__Context> for ExitReason
impl<__Context> Decode<__Context> for ExitReason
Source§impl Default for ExitReason
impl Default for ExitReason
Source§fn default() -> ExitReason
fn default() -> ExitReason
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExitReason
impl<'de> Deserialize<'de> for ExitReason
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
Source§impl Encode for ExitReason
impl Encode for ExitReason
Source§impl From<&str> for ExitReason
impl From<&str> for ExitReason
Source§impl From<String> for ExitReason
impl From<String> for ExitReason
Source§impl PartialEq<&str> for ExitReason
impl PartialEq<&str> for ExitReason
Source§impl PartialEq<ExitReason> for &str
impl PartialEq<ExitReason> for &str
Source§impl PartialEq for ExitReason
impl PartialEq for ExitReason
Source§impl Serialize for ExitReason
impl Serialize for ExitReason
impl Eq for ExitReason
impl StructuralPartialEq for ExitReason
Auto Trait Implementations§
impl Freeze for ExitReason
impl RefUnwindSafe for ExitReason
impl Send for ExitReason
impl Sync for ExitReason
impl Unpin for ExitReason
impl UnwindSafe for ExitReason
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