Struct sysinfo::System[][src]

pub struct System { /* fields omitted */ }

Struct containing system's information.

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

Refresh data network.

Refresh only the process corresponding to pid. Returns false if the process doesn't exist. Read more

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.

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 network data.

Returns system uptime.

Refreshes all system, processes and disks information.

Returns a list of process containing the given name.

Auto Trait Implementations

impl !Send for System

impl !Sync for System