Struct sysinfo::System [−][src]
pub struct System { /* fields omitted */ }
Expand description
Structs containing system’s information.
Trait Implementations
Returns true
if this OS is supported. Please refer to the
crate-level documentation to get the list of supported OSes. Read more
Creates a new System
instance and refresh the data corresponding to the
given RefreshKind
. Read more
Refreshes RAM and SWAP usage. Read more
Refreshes components list. Read more
Refreshes CPU usage. Read more
Gets all processes and updates their information. Read more
Refreshes only the process corresponding to pid
. Returns false
if the process doesn’t
exist. If it isn’t listed yet, it’ll be added. Read more
The disk list will be emptied then completely recomputed. Read more
Refreshes users list. Read more
Returns the process corresponding to the given pid or None
if no such process exists. Read more
Returns “global” processors information (aka the addition of all the processors). Read more
Returns the number of physical cores on the processor or None
if it couldn’t get it. Read more
Returns a mutable access to network interfaces. Read more
Returns the RAM size in KB. Read more
Returns the amount of free RAM in KB. Read more
Returns the amount of available RAM in KB. Read more
Returns the amound of used RAM in KB. Read more
Returns the SWAP size in KB. Read more
Returns the system load average value. Read more
Returns the time (in seconds) when the system booted since UNIX epoch. Read more
Returns the system long os version (e.g “MacOS 11.2 BigSur”). Read more
Returns the system’s kernel version. Read more
Returns the system version (e.g. for MacOS this will return 11.1 rather than the kernel version). Read more
Creates a new System
instance with nothing loaded except the processors list. If you
want to load components, network interfaces or the disks, you’ll have to use the
refresh_*_list
methods. SystemExt::refresh_networks_list
for example. Read more
Refreshes according to the given RefreshKind
. It calls the corresponding
“refresh_” methods. Read more
Refreshes system information (RAM, swap, CPU usage and components’ temperature). Read more
Refreshes components’ temperature. Read more
Refreshes the listed disks’ information. Read more
Refreshes networks data. Read more
The network list will be updated: removing not existing anymore interfaces and adding new ones. Read more
Refreshes all system, processes, disks and network interfaces information. Read more
Auto Trait Implementations
impl RefUnwindSafe for System
impl UnwindSafe for System