Struct sysinfo::System [] [src]

pub struct System { /* fields omitted */ }

Structs containing system's information.

Methods

impl 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).

Refresh system information (such as memory, swap, CPU usage and components' temperature).

Get all processes and update their information.

Refreshes the listed disks' information.

Refreshes all system, processes and disks information.

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 process 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.

Trait Implementations

impl Default for System
[src]

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