#[non_exhaustive]pub enum Status {
Code(i32),
Signal(i32),
}Expand description
How the child process itself ended, as the run reaped it. A run that stopped the child gives the status that the stop caused, such as the signal of its first step or the code that the child’s handler of that signal exited with.
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.
Code(i32)
The child exited with this code. On Windows a child in a job that the crate ended exits with 1.
Signal(i32)
A signal, by its number, ended the child. Only Unix has this status.
Implementations§
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Forget for Status
impl Freeze for Status
impl Move for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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