Skip to main content

exec

Function exec 

Source
pub fn exec<I, S>(binary: &Path, argv: I) -> Result<(), Refusal>
where I: IntoIterator<Item = S>, S: AsRef<OsStr>,
Expand description

Replaces this process with binary argv….

Returns only when the binary could not be started. On unix the verb’s exit status is then the shell’s directly; elsewhere this waits and exits with the same status.