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§
type Child: Interruptible
Required Methods§
Sourcefn spawn_interruptible(&mut self) -> Result<Self::Child>
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
impl InterruptibleCommand for Command
type Child = InterruptibleChild
fn spawn_interruptible(&mut self) -> Result<InterruptibleChild>
Source§impl InterruptibleCommand for Command
Available on crate feature tokio only.
impl InterruptibleCommand for Command
Available on crate feature
tokio only.