Enum AppExit
pub enum AppExit {
Success,
Error(NonZero<u8>),
}Expand description
An event that indicates, that the application should exit.
Variants§
Success
The application exited without any problems.
Error(NonZero<u8>)
The application exited with an error. Holds the exit code that the process should return.
Implementations§
Trait Implementations§
§impl Ord for AppExit
impl Ord for AppExit
§impl PartialOrd for AppExit
impl PartialOrd for AppExit
§impl Termination for AppExit
impl Termination for AppExit
impl Copy for AppExit
impl Eq for AppExit
impl StructuralPartialEq for AppExit
Auto Trait Implementations§
impl Freeze for AppExit
impl RefUnwindSafe for AppExit
impl Send for AppExit
impl Sync for AppExit
impl Unpin for AppExit
impl UnwindSafe for AppExit
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