Struct x86::cpuid::ExtendedTopologyLevel
source · [−]pub struct ExtendedTopologyLevel { /* private fields */ }
Expand description
Gives information about the current level in the topology.
How many cores, what type etc.
Implementations
sourceimpl ExtendedTopologyLevel
impl ExtendedTopologyLevel
sourcepub fn processors(&self) -> u16
pub fn processors(&self) -> u16
Number of logical processors at this level type. The number reflects configuration as shipped.
sourcepub fn level_number(&self) -> u8
pub fn level_number(&self) -> u8
Level number.
pub fn level_type(&self) -> TopologyType
sourcepub fn shift_right_for_next_apic_id(&self) -> u32
pub fn shift_right_for_next_apic_id(&self) -> u32
Number of bits to shift right on x2APIC ID to get a unique topology ID of the next level type. (Bits 04-00) All logical processors with the same next level ID share current level.
Trait Implementations
sourceimpl Debug for ExtendedTopologyLevel
impl Debug for ExtendedTopologyLevel
sourceimpl PartialEq<ExtendedTopologyLevel> for ExtendedTopologyLevel
impl PartialEq<ExtendedTopologyLevel> for ExtendedTopologyLevel
sourcefn eq(&self, other: &ExtendedTopologyLevel) -> bool
fn eq(&self, other: &ExtendedTopologyLevel) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExtendedTopologyLevel) -> bool
fn ne(&self, other: &ExtendedTopologyLevel) -> bool
This method tests for !=
.
impl Eq for ExtendedTopologyLevel
impl StructuralEq for ExtendedTopologyLevel
impl StructuralPartialEq for ExtendedTopologyLevel
Auto Trait Implementations
impl RefUnwindSafe for ExtendedTopologyLevel
impl Send for ExtendedTopologyLevel
impl Sync for ExtendedTopologyLevel
impl Unpin for ExtendedTopologyLevel
impl UnwindSafe for ExtendedTopologyLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more