pub fn wait_with_timeout(child: Child, timeout: Duration) -> Result<Output>
Wait for a child process with a timeout. Kills the process if it exceeds the limit. Returns the Output on success, or an error on timeout.