InterruptibleCommand

Trait InterruptibleCommand 

Source
pub trait InterruptibleCommand {
    type Child: Interruptible;

    // Required method
    fn spawn_interruptible(&mut self) -> Result<Self::Child>;
}
Expand description

A trait for spawning interruptible child processes

Required Associated Types§

Required Methods§

Source

fn spawn_interruptible(&mut self) -> Result<Self::Child>

Spawn a new interruptible child process that has been specifically configured to ensure it is interruptible. An error is returned if one occurs while attempting to spawn the child process.

Implementations on Foreign Types§

Source§

impl InterruptibleCommand for Command

Source§

impl InterruptibleCommand for Command

Available on crate feature tokio only.

Implementors§