#[non_exhaustive]pub enum ExitFatal {
NotSupported,
UnhandledInterrupt,
ExceptionAsFatal(ExitException),
AlreadyExited,
Unfinished,
UnevenSubstate,
InvalidFeedback,
Other(Cow<'static, str>),
}
Expand description
Exit fatal reason.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotSupported
The operation is not supported.
UnhandledInterrupt
The trap (interrupt) is unhandled.
ExceptionAsFatal(ExitException)
The environment explicitly set call errors as fatal error.
AlreadyExited
Already exited.
Unfinished
Unfinished execution.
UnevenSubstate
Uneven substate.
InvalidFeedback
Invalid feedback.
Other(Cow<'static, str>)
Other fatal errors.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExitFatal
impl<'de> Deserialize<'de> for ExitFatal
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 From<ExitFatal> for ExitResult
impl From<ExitFatal> for ExitResult
impl Eq for ExitFatal
impl StructuralPartialEq for ExitFatal
Auto Trait Implementations§
impl Freeze for ExitFatal
impl RefUnwindSafe for ExitFatal
impl Send for ExitFatal
impl Sync for ExitFatal
impl Unpin for ExitFatal
impl UnwindSafe for ExitFatal
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,
Source§impl<T> TrapConsume<T> for T
impl<T> TrapConsume<T> for T
Source§type Rest = Infallible
type Rest = Infallible
Rest type.
Source§fn consume(self) -> Result<T, Infallible>
fn consume(self) -> Result<T, Infallible>
Consume
T
to get Rest
.