Skip to main content

ProcessPredicate

Trait ProcessPredicate 

Source
pub trait ProcessPredicate<Os>
where Os: VmiOs,
{ // Required method fn matches(&self, process: &Os::Process<'_>) -> Result<bool, VmiError>; }
Expand description

Predicate used by VmiOsExt::find_process.

Required Methods§

Source

fn matches(&self, process: &Os::Process<'_>) -> Result<bool, VmiError>

Returns Ok(true) if process matches the predicate.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<Os> ProcessPredicate<Os> for &String
where Os: VmiOs,

Source§

fn matches(&self, process: &Os::Process<'_>) -> Result<bool, VmiError>

Source§

impl<Os> ProcessPredicate<Os> for &str
where Os: VmiOs,

Source§

fn matches(&self, process: &Os::Process<'_>) -> Result<bool, VmiError>

Implementors§

Source§

impl<Os, F> ProcessPredicate<Os> for F
where Os: VmiOs, F: Fn(&Os::Process<'_>) -> Result<bool, VmiError>,

Source§

impl<Os> ProcessPredicate<Os> for AnyProcess
where Os: VmiOs,

Source§

impl<Os> ProcessPredicate<Os> for ProcessId
where Os: VmiOs,