async fn collect_host_output(
child: &mut Child,
stdout_pipe: &mut ChildStdout,
stderr_pipe: &mut ChildStderr,
stdout_buf: &mut Vec<u8>,
stderr_buf: &mut Vec<u8>,
) -> Result<Result<ExitStatus, String>, Elapsed>Expand description
Reads both streams (capped) and waits for the child, all under the
timeout. The outer Err is the timeout.