pub struct ChildFinished { /* private fields */ }Expand description
How a run’s child ended and what the run kept of its output.
Implementations§
Source§impl ChildFinished
impl ChildFinished
Sourcepub const fn status(&self) -> Option<Status>
pub const fn status(&self) -> Option<Status>
Returns the child’s own status as the run reaped it, or None when
the run started no child because its cancel was already cancelled.
The status tells how the child ended even when the run stopped it.
A run whose cancel stopped a child that SIGINT ended gives
Outcome::Stopped(StopReason::Cancelled) and the status Status::Signal(2),
whose Status::shell_code is 130. A child that handles the signal
and exits with a code of its own gives that code.
Sourcepub fn into_output(self) -> (Captured, Captured)
pub fn into_output(self) -> (Captured, Captured)
Returns what the run kept of standard output and standard error.
Sourcepub const fn first_stdout(&self) -> Option<Duration>
pub const fn first_stdout(&self) -> Option<Duration>
Returns the time from the child’s start to the first byte of its
standard output, or None when it printed none or the run discarded
standard output.
Trait Implementations§
Source§impl Clone for ChildFinished
impl Clone for ChildFinished
Source§impl Debug for ChildFinished
impl Debug for ChildFinished
impl Eq for ChildFinished
Source§impl PartialEq for ChildFinished
impl PartialEq for ChildFinished
impl StructuralPartialEq for ChildFinished
Auto Trait Implementations§
impl Forget for ChildFinished
impl Freeze for ChildFinished
impl RefUnwindSafe for ChildFinished
impl Send for ChildFinished
impl Sync for ChildFinished
impl Unpin for ChildFinished
impl UnsafeUnpin for ChildFinished
impl UnwindSafe for ChildFinished
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