Struct ::sysinfo::SysInfo

System info access

Methods

fn new() -> SysInfo

Create a new system info object

The system architecture

fn kernel(self) -> Option

The kernel version

The DNS hostname

fn os_id(self) -> String

The OS ID

On Linux this corresponds to the ID field in /etc/os-release.

The OS version

On Linux this corresponds to the VERSION_ID field in /etc/os-release or DISTRIB_RELEASE in /etc/lsb-release.

Number of physical CPU cores

Total amount of memory in kB

Get the CPU vendor

Get the CPU vendor

Get the PCI devices