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§
Sourcefn spawn_async(&mut self) -> Result<Process>
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".