pub struct Finished { /* private fields */ }Expand description
How a run’s child ended and what the run kept of its output.
Implementations§
Source§impl Finished
impl Finished
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
Exit::Stopped(Stop::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§
impl Eq for Finished
impl StructuralPartialEq for Finished
Auto Trait Implementations§
impl Forget for Finished
impl Freeze for Finished
impl RefUnwindSafe for Finished
impl Send for Finished
impl Sync for Finished
impl Unpin for Finished
impl UnsafeUnpin for Finished
impl UnwindSafe for Finished
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