Trait app_rummage::Process
source · pub trait Process {
// Required methods
fn pid(&self) -> NonZeroU32;
fn executable(&self) -> Option<PathBuf>;
}Expand description
A running process
Used to identify running applications. ApplicationEntry’s exec field is compared against the process’s executable path to determine if the process is an application.
Required Methods§
sourcefn pid(&self) -> NonZeroU32
fn pid(&self) -> NonZeroU32
The process’s PID
sourcefn executable(&self) -> Option<PathBuf>
fn executable(&self) -> Option<PathBuf>
The process’s executable path
It is expected that the path is canonical