pub struct CPU {Show 38 fields
pub processor: Option<usize>,
pub vendor_id: Option<String>,
pub cpu_family: Option<u32>,
pub model: Option<u32>,
pub model_name: Option<String>,
pub stepping: Option<u32>,
pub microcode: Option<String>,
pub cpu_mhz: Option<f32>,
pub cache_size: Option<Size>,
pub physical_id: Option<u32>,
pub siblings: Option<u32>,
pub core_id: Option<u32>,
pub cpu_cores: Option<u32>,
pub apicid: Option<u32>,
pub initial_apicid: Option<u32>,
pub fpu: Option<bool>,
pub fpu_exception: Option<bool>,
pub cpuid_level: Option<u32>,
pub wp: Option<bool>,
pub flags: Option<Vec<String>>,
pub bugs: Option<Vec<String>>,
pub bogomips: Option<f64>,
pub clflush_size: Option<u32>,
pub cache_alignment: Option<u32>,
pub address_sizes: Option<String>,
pub power_management: Option<String>,
pub cpu_implementer: Option<String>,
pub cpu_architecture: Option<u8>,
pub cpu_variant: Option<String>,
pub cpu_part: Option<String>,
pub cpu_revision: Option<u32>,
pub cpu: Option<String>,
pub clock: Option<f32>,
pub revision: Option<String>,
pub timebase: Option<usize>,
pub platform: Option<String>,
pub machine: Option<String>,
pub model_ppc: Option<String>,
}Expand description
A structure with data about each processor core/thread
Fields§
§processor: Option<usize>Entry number (index)
vendor_id: Option<String>Vendor name
cpu_family: Option<u32>CPU Family ID
model: Option<u32>Model ID
model_name: Option<String>Model name
stepping: Option<u32>Stepping
microcode: Option<String>Microcode number (representation as a String!)
cpu_mhz: Option<f32>CPU core/thread current frequency
cache_size: Option<Size>L3 cache size
physical_id: Option<u32>Physical ID of CPU core/thread
siblings: Option<u32>Siblings
core_id: Option<u32>Core ID
cpu_cores: Option<u32>CPU cores count
apicid: Option<u32>APIC ID
initial_apicid: Option<u32>Initial APIC ID
fpu: Option<bool>Is FPU exists?
fpu_exception: Option<bool>§cpuid_level: Option<u32>§wp: Option<bool>§flags: Option<Vec<String>>§bugs: Option<Vec<String>>§bogomips: Option<f64>§clflush_size: Option<u32>§cache_alignment: Option<u32>§address_sizes: Option<String>§power_management: Option<String>§cpu_implementer: Option<String>§cpu_architecture: Option<u8>§cpu_variant: Option<String>§cpu_part: Option<String>§cpu_revision: Option<u32>§cpu: Option<String>§clock: Option<f32>§revision: Option<String>§timebase: Option<usize>§platform: Option<String>§machine: Option<String>§model_ppc: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for CPU
impl RefUnwindSafe for CPU
impl Send for CPU
impl Sync for CPU
impl Unpin for CPU
impl UnwindSafe for CPU
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more