pub fn run_command_bounded(
config: ProcessConfig,
timeout: Option<Duration>,
output_limit: usize,
) -> Result<RunOutput, ProcessError>Expand description
Run a command with an aggregate stdout/stderr capture limit.
Once output_limit bytes have been retained, further output is drained
without allocation, the contained process is terminated, and
ProcessError::OutputLimitExceeded is returned. Timeout and overflow
paths wait for the cancelable capture readers to actually exit before
returning, including when a descendant escaped the process group while
retaining a pipe.