Expand description
#Introduction This crate focuses on geting system information.
For now it supports Linux, Mac OS X and Windows. And now it can get information of kernel/cpu/memory/disk/load/hostname and so on.
Structs§
- Disk
Info - Disk information.
- LinuxOS
Release Info - The os release info of Linux.
- LoadAvg
- System load average value.
- MemInfo
- System memory information.
Enums§
- Error
- Error types
Functions§
- boottime
- Get system boottime
- cpu_num
- Get cpu num quantity.
- cpu_
speed - Get cpu speed.
- disk_
info - Get disk information.
- hostname
- Get hostname.
- linux_
os_ release - Get the os release note of Linux
- loadavg
- Get system load average value.
- mem_
info - Get memory information.
- os_
release - Get operation system release version.
- os_type
- Get operation system type.
- proc_
total - Get current processes quantity.