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§
Sourcefn clone_killer(&self) -> Box<dyn ChildKiller + Sync + Send>
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
.