pub struct Process {
    pub uid: uid_t,
    pub gid: gid_t,
    pub tasks: HashMap<Pid, Process>,
    /* private fields */
}
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.

tasks: HashMap<Pid, Process>

Tasks run by this process.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. 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 name of the process. Read more

Returns the command line. Read more

Returns the path to the process. Read more

Returns the pid of the process. Read more

Returns the environment variables of the process. Read more

Returns the current working directory. Read more

Returns the path of the root directory. Read more

Returns the memory usage (in KB). Read more

Returns the virtual memory usage (in KB). Read more

Returns the parent pid. 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

Sends Signal::Kill to the process (which is the only signal supported on all supported platforms by this crate). Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.