pub struct ExecutionCompletion {
pub output: Output,
pub input: InputCompletion,
}std only.Expand description
A reaped child’s output and input-delivery outcome, including unsuccessful exits.
Returned by crate::Executor::execute_with_io_completion. Inspect both
fields when early child exit is intentional. Capture/forwarding and wait
errors are returned directly instead of producing a completion value.
Fields§
§output: OutputExit status, captured stderr, and captured stdout. Forwarded stdout is empty.
input: InputCompletionWhether the input source finished and all its bytes reached the stdin pipe.
Implementations§
Source§impl ExecutionCompletion
impl ExecutionCompletion
Sourcepub fn into_result(self) -> ExecutorResult
pub fn into_result(self) -> ExecutorResult
Requires a successful exit and complete input delivery, returning stdout.
Error precedence is: source errors and non-broken-pipe stdin errors
(which cause termination), unsuccessful child exit with stderr, then
broken-pipe errors or ExecutorError::IncompleteInput. Thus an exit
failure is not hidden by a downstream broken pipe, and an upstream error
is not hidden by the termination it caused. Ready input outcomes are
polled before child exit; pending sources are never drained after exit.