#[non_exhaustive]pub enum Exit {
Code(i32),
Signal(i32),
TimedOut,
Stopped(Stop),
}Expand description
How a run’s child ended. The caller can tell an exit, a signal, a
timeout and a stop apart. Finished::status
gives the child’s own status as the run reaped it, which a timeout or a
stop also has.
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, and the run did not send it. Only Unix has this exit.
TimedOut
The run’s deadline passed before the child exited, and the run stopped the child.
Stopped(Stop)
The run stopped the child for the reason given.
Trait Implementations§
impl Copy for Exit
impl Eq for Exit
impl StructuralPartialEq for Exit
Auto Trait Implementations§
impl Forget for Exit
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