Struct sysinfo::System [] [src]

pub struct System { /* fields omitted */ }

Structs containing system's information.

Trait Implementations

impl Debug for System
[src]

Formats the value using the given formatter.

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.

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 a list of process starting with the given name.

Returns network data.

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