Skip to main content

ProcessKiller

Trait ProcessKiller 

Source
pub trait ProcessKiller: Send + Sync {
    // Required method
    fn kill(&self);
}
Expand description

Kill side of a ProcessHandle. Cloneable via Arc so cancellation works after the waiter thread has taken ownership of the handle itself.

Required Methods§

Source

fn kill(&self)

Send SIGKILL to the process (and its process group, when applicable).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§