#[non_exhaustive]pub enum Outcome {
Ended(Status),
TimedOut,
Stopped(StopReason),
}Expand description
How a run’s child ended. The caller can tell an exit, a signal, a
timeout and a stop apart. ChildFinished::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.
Ended(Status)
The child ended on its own with this status, and the run did not stop it.
TimedOut
The run’s deadline passed before the child exited, and the run stopped the child.
Stopped(StopReason)
The run stopped the child for the reason given.
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Forget for Outcome
impl Freeze for Outcome
impl Move for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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