ChildKiller

Trait ChildKiller 

Source
pub trait ChildKiller: Debug {
    // Required methods
    fn kill(&mut self) -> Result<(), Error>;
    fn clone_killer(&self) -> Box<dyn ChildKiller + Sync + Send>;
}
Expand description

Represents the ability to signal a Child to terminate

Required Methods§

Source

fn kill(&mut self) -> Result<(), Error>

Terminate the child process

Source

fn clone_killer(&self) -> Box<dyn ChildKiller + Sync + Send>

Clone an object that can be split out from the Child in order to send it signals independently from a thread that may be blocked in .wait.

Implementations on Foreign Types§

Source§

impl ChildKiller for Child

Source§

fn kill(&mut self) -> Result<(), Error>

Source§

fn clone_killer(&self) -> Box<dyn ChildKiller + Sync + Send>

Implementors§