Skip to main content

run_prepared_with_limits

Function run_prepared_with_limits 

Source
pub fn run_prepared_with_limits(
    command: Command,
    input: Option<&[u8]>,
    stdout_limit: usize,
    stderr_limit: usize,
    timeout: Duration,
) -> Result<Output, Error>
Expand description

Run a caller-prepared command with independent output-stream ceilings, for helpers whose primary output is legitimately much larger than their diagnostics, such as image acquisition tools.