get_cpu

Function get_cpu 

Source
pub fn get_cpu() -> Cpu
Expand description

Returns a new Cpu enum.

The vendor leaf will contain a ASCII readable string such as “GenuineIntel” for Intel CPUs or “AuthenticAMD” for AMD CPUs.