pub async fn run_command(
cmd: Command,
stdin_bytes: Option<Vec<u8>>,
timeout: Duration,
limits: StreamLimit,
) -> Result<ProcessRunResult, ProcessRunError>Expand description
Runs a child process with bounded stdout/stderr capture and deadline enforcement.
The child is configured with piped stdin/stdout/stderr, killed on drop, and reaped on timeout.
Stdin write or close failures are surfaced in ProcessRunResult when the process otherwise
runs to completion.