Struct sysinfo::System [] [src]

pub struct System { /* fields omitted */ }

Structs containing system's information.

Methods

impl System
[src]

WARNING: This method is specific to Linux.

Refresh only the process corresponding to pid.

Trait Implementations

impl SystemExt for System
[src]

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.

Refreshes the listed disks' information.

The disk list will be emptied then completely recomputed.

Returns the process list.

Returns the process corresponding to the given pid or None if no such process exists.

Returns a list of process starting with the given name.

The first processor in the array is the "main" process.

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.

Refreshes all system, processes and disks information.

impl Default for System
[src]

Returns the "default value" for a type. Read more