pub enum ProcessPredicate<'a> {
Text(&'a FilterPattern),
OwnedBy(u32),
NotKernelThread,
}Expand description
One independently toggleable row test (§7.2).
Separating the three tests keeps them composable: the process screen ANDs whichever are active, the Time Lens contributor list reuses only the text one, and each can be unit-tested on its own.
Variants§
Text(&'a FilterPattern)
The text query over name, command, PID, and user.
OwnedBy(u32)
The user-only toggle: keep rows owned by this uid.
NotKernelThread
The hide-kernel-threads toggle (Linux; §7.2).
Implementations§
Source§impl ProcessPredicate<'_>
impl ProcessPredicate<'_>
Sourcepub fn matches(&self, process: &ProcessSnapshot) -> bool
pub fn matches(&self, process: &ProcessSnapshot) -> bool
Whether process satisfies this predicate.
Trait Implementations§
Source§impl<'a> Clone for ProcessPredicate<'a>
impl<'a> Clone for ProcessPredicate<'a>
Source§fn clone(&self) -> ProcessPredicate<'a>
fn clone(&self) -> ProcessPredicate<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ProcessPredicate<'a>
Source§impl<'a> Debug for ProcessPredicate<'a>
impl<'a> Debug for ProcessPredicate<'a>
impl<'a> Eq for ProcessPredicate<'a>
Source§impl<'a> PartialEq for ProcessPredicate<'a>
impl<'a> PartialEq for ProcessPredicate<'a>
impl<'a> StructuralPartialEq for ProcessPredicate<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProcessPredicate<'a>
impl<'a> RefUnwindSafe for ProcessPredicate<'a>
impl<'a> Send for ProcessPredicate<'a>
impl<'a> Sync for ProcessPredicate<'a>
impl<'a> Unpin for ProcessPredicate<'a>
impl<'a> UnsafeUnpin for ProcessPredicate<'a>
impl<'a> UnwindSafe for ProcessPredicate<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more