pub enum Exit {
Ended {
code: i32,
},
Signalled,
Unknown {
why: Unseen,
},
}Expand description
How a child process stopped.
Three answers rather than one number: one integer cannot tell “it returned minus one”, “a signal stopped it” and “this city never found out” apart, and a program that really does return minus one is ordinary.
Variants§
Ended
It ran to the end and returned this code.
Signalled
A signal stopped it, so there is no code to return. This is what
halt leaves behind on a Unix host.
Unknown
This city cannot say how it stopped.
Implementations§
Trait Implementations§
impl Copy for Exit
impl Eq for Exit
impl StructuralPartialEq for Exit
Auto Trait Implementations§
impl Freeze for Exit
impl RefUnwindSafe for Exit
impl Send for Exit
impl Sync for Exit
impl Unpin for Exit
impl UnsafeUnpin for Exit
impl UnwindSafe for Exit
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