pub trait ProcessController: Send + Sync {
// Required methods
fn check_process(&self, pid: u32) -> Result<ProcessStatus, Error>;
fn send_signal(&self, pid: u32, signal: Signal) -> Result<(), Error>;
fn process_identity(
&self,
pid: u32,
) -> Result<Option<ProcessIdentity>, Error>;
}Required Methods§
fn check_process(&self, pid: u32) -> Result<ProcessStatus, Error>
fn send_signal(&self, pid: u32, signal: Signal) -> Result<(), Error>
fn process_identity(&self, pid: u32) -> Result<Option<ProcessIdentity>, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".