Skip to main content

CommandAsync

Trait CommandAsync 

Source
pub trait CommandAsync {
    // Required method
    fn spawn_async(&mut self) -> Result<Process>;
}
Expand description

Extension trait to implement an async spawner on the Command struct

Required Methods§

Source

fn spawn_async(&mut self) -> Result<Process>

Spawn an async child process

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl CommandAsync for Command

Implementors§