Struct faithe::process::ProcessEntry
source · [−]pub struct ProcessEntry {
pub process_id: u32,
pub cnt_threads: u32,
pub parent_id: u32,
pub thread_base_priority: i32,
pub file_name: String,
}
Expand description
Basic information about single process.
Fields
process_id: u32
Process’s id
cnt_threads: u32
Number of running threads in the process.
parent_id: u32
Id of parent process.
thread_base_priority: i32
Thread priority for any newly created thread.
file_name: String
Name of an executable file.
Implementations
sourceimpl ProcessEntry
impl ProcessEntry
sourcepub fn modules(&self) -> Result<ModuleIterator, FaitheError>
pub fn modules(&self) -> Result<ModuleIterator, FaitheError>
Returns an iterator over loaded modules in the process.
sourcepub fn threads(&self) -> Result<ThreadIterator, FaitheError>
pub fn threads(&self) -> Result<ThreadIterator, FaitheError>
Returns an iterator over running threads in the process.
sourceimpl ProcessEntry
impl ProcessEntry
sourcepub fn open(
&self,
inherit_handle: bool,
desired_access: PROCESS_ACCESS_RIGHTS
) -> Result<OwnedProcess, FaitheError>
pub fn open(
&self,
inherit_handle: bool,
desired_access: PROCESS_ACCESS_RIGHTS
) -> Result<OwnedProcess, FaitheError>
Tries to open this particular process.
Trait Implementations
sourceimpl Clone for ProcessEntry
impl Clone for ProcessEntry
sourcefn clone(&self) -> ProcessEntry
fn clone(&self) -> ProcessEntry
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ProcessEntry
impl Debug for ProcessEntry
sourceimpl From<PROCESSENTRY32W> for ProcessEntry
impl From<PROCESSENTRY32W> for ProcessEntry
Auto Trait Implementations
impl RefUnwindSafe for ProcessEntry
impl Send for ProcessEntry
impl Sync for ProcessEntry
impl Unpin for ProcessEntry
impl UnwindSafe for ProcessEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more