Skip to main content

spawn

Function spawn 

Source
pub fn spawn(command: &mut Command) -> Result<Child>
Expand description

Start a caller-configured command and transfer its native child ownership. No containment or drop cleanup is added: the caller remains responsible for consuming pipes, termination and reaping, exactly as with Command::spawn. Use a contained/session API when that ownership policy is desired instead.