pub fn capture(
component: Component,
command: &mut Command,
scope: &Operation,
policy: QueryPolicy,
on_failure: impl FnOnce(),
) -> Result<Output, Error>Expand description
Capture one owned subprocess, invoking native cleanup before the final kill/reap on failure.
ยงErrors
Returns process, stream-limit, timeout or cancellation failures; the exact child is reaped.