Struct sysinfo::Process [−][src]
pub struct Process { pub uid: uid_t, pub gid: gid_t, pub tasks: HashMap<Pid, Process>, // some fields omitted }
Expand description
Struct containing a process’ information.
Fields
uid: uid_t
Expand description
User id of the process owner.
gid: gid_t
Expand description
Group id of the process owner.
tasks: HashMap<Pid, Process>
Expand description
Tasks run by this process.
Trait Implementations
impl ProcessExt for Process
[src]
impl ProcessExt for Process
[src]fn status(&self) -> ProcessStatus
[src]
fn status(&self) -> ProcessStatus
[src]Returns the status of the processus (idle, run, zombie, etc). None
means that
sysinfo
doesn’t have enough rights to get this information.
fn new(pid: Pid, parent: Option<Pid>, start_time: u64) -> Process
[src]
fn virtual_memory(&self) -> u64
[src]
fn virtual_memory(&self) -> u64
[src]Returns the virtual memory usage (in kB). Read more
fn start_time(&self) -> u64
[src]
fn start_time(&self) -> u64
[src]Returns the time of process launch (in seconds). Read more
fn cpu_usage(&self) -> f32
[src]
fn cpu_usage(&self) -> f32
[src]Returns the total CPU usage (in %). Notice that it might be bigger than 100 if run on a multicore machine. Read more
fn disk_usage(&self) -> DiskUsage
[src]
fn disk_usage(&self) -> DiskUsage
[src]Returns number of bytes read and written to disk. Read more
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T