pub struct UarchInfo {
pub uarch: Uarch,
pub cpuid: Option<u32>,
pub midr: Option<u32>,
pub processor_count: u32,
pub core_count: u32,
}
Fields§
§uarch: Uarch
Type of CPU microarchitecture
cpuid: Option<u32>
Value of CPUID leaf 1 EAX register for the microarchitecture (x86/x64-specific ID)
midr: Option<u32>
Value of Main ID Register (MIDR) for this core (arm/aarch64-specific ID)
processor_count: u32
Number of logical processors with the microarchitecture
core_count: u32
Number of cores with the microarchitecture
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UarchInfo
impl<'de> Deserialize<'de> for UarchInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UarchInfo
impl RefUnwindSafe for UarchInfo
impl Send for UarchInfo
impl Sync for UarchInfo
impl Unpin for UarchInfo
impl UnwindSafe for UarchInfo
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