Skip to main content

run_command_with_timeout

Function run_command_with_timeout 

Source
pub fn run_command_with_timeout(
    cmd: &mut Command,
    timeout: Duration,
) -> Result<(ExitStatus, String, String), String>
Expand description

Executes a command with a strict timeout, capturing stdout and stderr.