Crate sys_info[][src]

#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

DiskInfo

Disk information.

LinuxOSReleaseInfo

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.