Struct sysinfo::System [] [src]

pub struct System { /* fields omitted */ }

Structs containing system's information.

Trait Implementations

impl Debug for System
[src]

[src]

Formats the value using the given formatter. Read more

impl SystemExt for System
[src]

[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

[src]

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

[src]

Get all processes and update their information.

[src]

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

[src]

Refreshes the listed disks' information.

[src]

The disk list will be emptied then completely recomputed.

[src]

Refresh data network.

[src]

Returns the process list.

[src]

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

[src]

Returns network data.

[src]

The first processor in the array is the "main" one (aka the addition of all the others).

[src]

Returns total RAM size.

[src]

Returns free RAM size.

[src]

Returns used RAM size.

[src]

Returns SWAP size.

[src]

Returns free SWAP size.

[src]

Returns used SWAP size.

[src]

Returns components list.

[src]

Returns disks' list.

[src]

Returns system uptime.

[src]

Refreshes all system, processes and disks information.

[src]

Returns a list of process containing the given name.

impl Default for System
[src]

[src]

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

Auto Trait Implementations

impl Send for System

impl Sync for System