pub struct ProcessOutcome {
pub program: PathBuf,
pub provenance: ExecutableProvenance,
pub status: ExitStatus,
pub timed_out: bool,
pub cancelled: bool,
pub duration: Duration,
pub stdout: CapturedStream,
pub stderr: CapturedStream,
}Expand description
Structured result from a child that was successfully spawned and reaped.
Fields§
§program: PathBufProgram name/path selected by the caller.
provenance: ExecutableProvenanceProvenance of the executable selection.
status: ExitStatusReaped child exit status, including the post-kill status on timeout.
timed_out: boolTrue when the deadline elapsed and the runner killed the child.
cancelled: boolTrue when cooperative cancellation killed the child process scope.
duration: DurationWall-clock duration including output drain and child reap.
stdout: CapturedStreamBounded stdout capture.
stderr: CapturedStreamBounded stderr capture.
Implementations§
Source§impl ProcessOutcome
impl ProcessOutcome
Sourcepub fn into_complete_output(self) -> Result<Output, IncompleteOutputError>
pub fn into_complete_output(self) -> Result<Output, IncompleteOutputError>
Convert a captured outcome into the standard library’s complete output shape.
Machine-readable callers must use this instead of parsing retained bytes directly: inherited, truncated, or incompletely drained streams are rejected rather than being mistaken for a complete document.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessOutcome
impl RefUnwindSafe for ProcessOutcome
impl Send for ProcessOutcome
impl Sync for ProcessOutcome
impl Unpin for ProcessOutcome
impl UnsafeUnpin for ProcessOutcome
impl UnwindSafe for ProcessOutcome
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