pub struct CpuInfo {
pub vendor: CpuVendor,
pub features: CpuFeatures,
pub max_xcr0: u64,
pub xsave_size: usize,
pub family: u8,
pub model: u8,
pub stepping: u8,
pub model_name: [u8; 48],
/* private fields */
}Expand description
Cached CPU identification and feature information.
Fields§
§vendor: CpuVendor§features: CpuFeatures§max_xcr0: u64§xsave_size: usize§family: u8§model: u8§stepping: u8§model_name: [u8; 48]Implementations§
Source§impl CpuInfo
impl CpuInfo
Sourcepub fn model_name_str(&self) -> &str
pub fn model_name_str(&self) -> &str
Return the model name as a &str.
Sourcepub fn vendor_string(&self) -> &'static str
pub fn vendor_string(&self) -> &'static str
Return a vendor id string (e.g. “GenuineIntel”).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CpuInfo
impl RefUnwindSafe for CpuInfo
impl Send for CpuInfo
impl Sync for CpuInfo
impl Unpin for CpuInfo
impl UnsafeUnpin for CpuInfo
impl UnwindSafe for CpuInfo
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> 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