Struct sysinfo::System

source ·
pub struct System { /* private fields */ }
Expand description

Structs containing system’s information.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Creates a new System instance. It only contains the disks’ list at this stage. Use the refresh_all method to update its internal information (or any of the refresh_ method). Read more
Refresh system information (such as memory, swap, CPU usage and components’ temperature).
Get all processes and update their information.
Refresh only the process corresponding to pid. Returns false if the process doesn’t exist. Read more
Refreshes the listed disks’ information.
The disk list will be emptied then completely recomputed.
Refresh data network.
Returns the process list.
Returns the process corresponding to the given pid or None if no such process exists.
Returns network data.
The first processor in the array is the “main” one (aka the addition of all the others).
Returns total RAM size.
Returns free RAM size.
Returns used RAM size.
Returns SWAP size.
Returns free SWAP size.
Returns used SWAP size.
Returns components list.
Returns disks’ list.
Returns system uptime.
Refreshes all system, processes and disks information.
Returns a list of process containing the given name.

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.