Expand description
the process struct .
let p = Process::new(123,"yeah.exe");
Fields
pid: u32
pname: String
Implementations
sourceimpl Process
impl Process
sourcepub fn get_threads(&self) -> Vec<u32>
pub fn get_threads(&self) -> Vec<u32>
get the process threadsID . return Vec<u32>
sourcepub fn get_parrent(&self) -> Option<u32>
pub fn get_parrent(&self) -> Option<u32>
get the process parrentID , return Option<u32>
sourcepub fn get_start_time(&self) -> String
pub fn get_start_time(&self) -> String
get the process start time . return String
sourcepub fn get_exit_time(&self) -> String
pub fn get_exit_time(&self) -> String
get process exit time . return String
sourcepub fn get_cpu_time(&self) -> CpuTime
pub fn get_cpu_time(&self) -> CpuTime
get process cpu time infomation . return CpuTime
struct
sourcepub fn get_cmd_params(&self) -> String
pub fn get_cmd_params(&self) -> String
get process commandline params . return String
sourcepub fn get_io_counter(&self) -> IoCounter
pub fn get_io_counter(&self) -> IoCounter
get process io counter . return a IoCounter
struct
sourcepub fn get_memory_info(&self) -> MemoryCounter
pub fn get_memory_info(&self) -> MemoryCounter
get process memory counter . return a MemoryCounter
struct
sourcepub fn get_handles_counter(&self) -> u32
pub fn get_handles_counter(&self) -> u32
get process handle counter
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnwindSafe for Process
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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