Skip to main content

SpawnCommand

Trait SpawnCommand 

Source
pub trait SpawnCommand {
    // Required method
    fn spawn(self) -> Result<SpawnedCommand>;
}
Available on crate feature process only.
Expand description

Trait used by objects that can spawn a command suitable for use with a ProcessStream.

Required Methods§

Source

fn spawn(self) -> Result<SpawnedCommand>

Spawns the command with the stdout and stderr handles configured appropriately.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§