ExtendedCpuTopologyLevel

Struct ExtendedCpuTopologyLevel 

Source
pub struct ExtendedCpuTopologyLevel { /* private fields */ }
Expand description

Gives information about the current level in the cpu topology.

Implementations§

Source§

impl ExtendedCpuTopologyLevel

Source

pub fn mask_width(&self) -> u8

Number of bits to shift Extended APIC ID right to get a unique topology ID of the current hierarchy level.

Source

pub fn has_efficiency_ranking_available(&self) -> bool

Set to 1 if processor power efficiency ranking (PwrEfficiencyRanking) is available and varies between cores. Only valid for LevelType = 1h (Core).

Source

pub fn has_heterogeneous_cores(&self) -> bool

Set to 1 if all components at the current hierarchy level do not consist of the cores that report the same core type (CoreType).

Source

pub fn has_asymmetric_topology(&self) -> bool

Set to 1 if all components at the current hierarchy level do not report the same number of logical processors (NumLogProc).

Source

pub fn num_logical_processors(&self) -> u16

Number of logical processors at the current hierarchy level

Source

pub fn pwr_efficiency_ranking(&self) -> u8

Reports a static efficiency ranking between cores of a specific core type, where a lower value indicates comparatively lower power consumption and lower performance. Only valid for LevelType = 1h (Core)

Source

pub fn native_mode_id(&self) -> u8

Reports a value that may be used to further differentiate implementation specific features. Native mode ID is used in conjunction with the family, model, and stepping identifiers. Refer to the Processor Programming Reference Manual applicable to your product for a list of Native Mode IDs. Only valid for LevelType = 1h (Core)

Source

pub fn core_type(&self) -> u8

Reports a value that may be used to distinguish between cores with different architectural and microarchitectural properties (for example, cores with different performance or power characteristics). Refer to the Processor Programming Reference Manual applicable to your product for a list of the available core types. Only valid for LevelType = 1h (Core)

Source

pub fn input_ecx(&self) -> u8

Input ECX

Source

pub fn level_type(&self) -> HierarchyLevelType

Encoded hierarchy level type

Source

pub fn extended_apic_id(&self) -> u32

Extended APIC ID of the logical processor

Trait Implementations§

Source§

impl Debug for ExtendedCpuTopologyLevel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ExtendedCpuTopologyLevel

Source§

fn eq(&self, other: &ExtendedCpuTopologyLevel) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for ExtendedCpuTopologyLevel

Source§

impl StructuralPartialEq for ExtendedCpuTopologyLevel

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.