Skip to main content

run

Function run 

Source
pub fn run<I, T>(
    args: I,
    stdout: &mut dyn Write,
    stderr: &mut dyn Write,
    cancel: Option<CancelToken>,
) -> i32
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Expand description

Runs the command and returns its exit code. args includes argv[0]. Bindings should disable default features, pass None or their own shared cancellation token, and capture stdout/stderr independently. No process exit or signal-handler installation occurs in this function.