CommandExt

Trait CommandExt 

Source
pub trait CommandExt: Sealed {
    // Required method
    fn exec_replace(&mut self) -> Result<Infallible>;
}
Expand description

Adds portable exec_replace to the Command.

Required Methods§

Source

fn exec_replace(&mut self) -> Result<Infallible>

Replace current process with command from Self and execute it.

§Returns

Err variant means, that spawning new command failed. Otherwise this function shall never return.

Implementations on Foreign Types§

Source§

impl CommandExt for Command

Implementors§