pub trait ChildTerminator: Send + Sync { // Required method fn kill(&mut self) -> Result<()>; }
Trait for process termination strategies.
Different backends (PTY vs pipe) may need different termination approaches.
Kill the child process.