Struct sysinfo::Process [−][src]
pub struct Process { pub uid: uid_t, pub gid: gid_t, pub status: Option<ThreadStatus>, // some fields omitted }
Expand description
Struct containing a process’ information.
Fields
uid: uid_t
User id of the process owner.
gid: gid_t
Group id of the process owner.
status: Option<ThreadStatus>
Status of process (running, stopped, waiting, etc). None
means sysinfo
doesn’t have
enough rights to get this information.
This is very likely this one that you want instead of process_status
.
Trait Implementations
impl ProcessExt for Process
[src]
impl ProcessExt for Process
[src]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 status(&self) -> ProcessStatus
[src]
fn status(&self) -> ProcessStatus
[src]Returns the status of the processus. 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
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more