pub struct Core {
pub processor_start: u32,
pub processor_count: u32,
pub core_id: u32,
pub cluster: Arc<Cluster>,
pub package: Arc<Package>,
pub vendor: Vendor,
pub uarch: Uarch,
pub cpuid: Option<u32>,
pub midr: Option<u32>,
pub frequency: u64,
}
Fields§
§processor_start: u32
Index of the first logical processor on this core.
processor_count: u32
Number of logical processors on this core
core_id: u32
Core ID within a package
cluster: Arc<Cluster>
Cluster containing this core
package: Arc<Package>
Physical package containing this core.
vendor: Vendor
Vendor of the CPU microarchitecture for this core
uarch: Uarch
CPU microarchitecture for this core
cpuid: Option<u32>
Value of CPUID leaf 1 EAX register for this core (x86/x64-specific ID)
midr: Option<u32>
Value of Main ID Register (MIDR) for this core (arm/aarch64-specific ID)
frequency: u64
Clock rate (non-Turbo) of the core, in Hz
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Core
impl<'de> Deserialize<'de> for Core
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 Core
impl RefUnwindSafe for Core
impl Send for Core
impl Sync for Core
impl Unpin for Core
impl UnwindSafe for Core
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