pub trait Interruptible {
// Required method
fn pid(&mut self) -> Result<Option<u32>>;
// Provided method
fn interrupt(&mut self) -> Result<()> { ... }
}Expand description
A trait for sending interrupts/ctrl-c to child processes.
NOTE: By implementing this trait, you are stating that the correct steps have been taken to ensure that the child process can actually be interrupted.
Required Methods§
Provided Methods§
Implementors§
impl Interruptible for send_ctrlc::InterruptibleChild
impl Interruptible for send_ctrlc::tokio::InterruptibleChild
Available on crate feature
tokio only.