fn spawn_and_capture(
cmd: &mut Command,
timeout: Duration,
cap: Option<usize>,
) -> Result<Output>Expand description
Spawn cmd, capture its output bounded by the wait timeout and an
optional per-stream byte cap, killing and reaping the child on overrun.