Enum ExitStatus
#[non_exhaustive]#[repr(C, usize)]pub enum ExitStatus {
Success(u32),
UnhandledException(usize),
TerminatedBySyscall = 3,
TerminatedByKernel = 4,
ProcessTerminated = 5,
}Expand description
Exit status of a process or thread.
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.
Success(u32)
The process or thread exited successfully with the given status code.
UnhandledException(usize)
The process or thread was terminated due to an unhandled exception.
TerminatedBySyscall = 3
The process or thread was forcibly terminated by another entity via a syscall.
TerminatedByKernel = 4
The process or thread was directly terminated by the kernel.
ProcessTerminated = 5
The thread was terminated because its containing process was terminated.
Trait Implementations§
§impl Clone for ExitStatus
impl Clone for ExitStatus
§fn clone(&self) -> ExitStatus
fn clone(&self) -> ExitStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExitStatus
§impl Debug for ExitStatus
impl Debug for ExitStatus
impl Eq for ExitStatus
§impl PartialEq for ExitStatus
impl PartialEq for ExitStatus
impl StructuralPartialEq for ExitStatus
Auto Trait Implementations§
impl Forget for ExitStatus
impl Freeze for ExitStatus
impl Move for ExitStatus
impl RefUnwindSafe for ExitStatus
impl Send for ExitStatus
impl Sync for ExitStatus
impl Unpin for ExitStatus
impl UnsafeUnpin for ExitStatus
impl UnwindSafe for ExitStatus
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)