Interruptible

Trait Interruptible 

Source
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§

Source

fn pid(&self) -> Option<u32>

Get the pid of the child process

Provided Methods§

Source

fn interrupt(&self) -> Result<()>

Send a ctrl-c interrupt to the child process

Implementors§

Source§

impl Interruptible for send_ctrlc::InterruptibleChild

Source§

impl Interruptible for send_ctrlc::tokio::InterruptibleChild

Available on crate feature tokio only.