Enum libproc::processes::ProcFilter
source · pub enum ProcFilter {
All,
ByProgramGroup {
pgrpid: u32,
},
ByTTY {
tty: u32,
},
ByUID {
uid: u32,
},
ByRealUID {
ruid: u32,
},
ByParentProcess {
ppid: u32,
},
}
Expand description
ProcFilter
is used to filter process ids.
See pids_by_type
and pids_by_type_and_path
(macos only) for details.
Variants§
All
All processes
ByProgramGroup
Filter by program group id
ByTTY
Filter by TTY
ByUID
Filter by (effective) user ID
ByRealUID
Filter by real user ID
ByParentProcess
Filter by parent process ID
Trait Implementations§
source§impl Clone for ProcFilter
impl Clone for ProcFilter
source§fn clone(&self) -> ProcFilter
fn clone(&self) -> ProcFilter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<ProcType> for ProcFilter
impl From<ProcType> for ProcFilter
Map ProcType
to the new ProcFilter
enum; the values match the now
deprecated implementation of listpids
impl Copy for ProcFilter
Auto Trait Implementations§
impl RefUnwindSafe for ProcFilter
impl Send for ProcFilter
impl Sync for ProcFilter
impl Unpin for ProcFilter
impl UnwindSafe for ProcFilter
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