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 information of a process.
iOS
This information cannot be retrieved on iOS due to sandboxing.
Apple app store
If you are building a macOS Apple app store, it won’t be able to retrieve this 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
Sends Signal::Kill
to the process (which is the only signal supported on all platforms
by this crate). Read more
Sends the given signal
to the process. If the signal doesn’t exist on this platform,
it’ll do nothing and will return None
. Otherwise it’ll return if the signal was sent
successfully. Read more
Returns the virtual memory usage (in KB). Read more
Returns the status of the processus. Read more
Returns the time where the process was started (in seconds) from epoch. Read more
Returns for how much time the process has been running (in seconds). Read more
Returns the total CPU usage (in %). Notice that it might be bigger than 100 if run on a multicore machine. Read more
Returns number of bytes read and written to disk. Read more
Auto Trait Implementations
impl RefUnwindSafe for Process
impl UnwindSafe for Process
Blanket Implementations
Mutably borrows from an owned value. Read more