pub trait Interruptible {
// Required method
fn pid(&self) -> Option<u32>;
// Provided method
fn interrupt(&self) -> Result<()> { ... }
}Expand description
Trait for sending interrupts/ctrl-c to child processes
Required Methods§
Provided Methods§
Implementors§
impl Interruptible for send_ctrlc::InterruptibleChild
impl Interruptible for send_ctrlc::tokio::InterruptibleChild
Available on crate feature
tokio only.