Skip to main content

run_std_command_bounded_with_options

Function run_std_command_bounded_with_options 

Source
pub fn run_std_command_bounded_with_options(
    command: Command,
    timeout: Option<Duration>,
    output_limit: usize,
    options: BoundedRunOptions,
) -> Result<RunOutput, ProcessError>
Expand description

Run an existing std::process::Command with bounded capture and explicit containment options.

Like run_std_command_bounded, this preserves the supplied command losslessly, forces null stdin plus separately captured stdout/stderr, and keeps bounded-run’s process group and cleanup behavior. The options only add host-native containment; they do not add a second launch path.