Enum x86::apic::ApicId [−][src]
pub enum ApicId { XApic(u8), X2Apic(u32), }
Encodes the id of a core.
Variants
A core destination encoded as an xAPIC ID.
A core destination encoded as an x2APIC ID.
Implementations
impl ApicId
[src]
pub fn x2apic_logical_id(&self) -> u32
[src]
Returns the Logical x2APIC ID.
In x2APIC mode, the 32-bit logical x2APIC ID, which can be read from LDR, is derived from the 32-bit local x2APIC ID: Logical x2APIC ID = [(x2APIC ID[19:4] « 16) | (1 « x2APIC ID[3:0])]
pub fn x2apic_logical_cluster_address(&self) -> u32
[src]
Returns the logical address relative to a cluster for a given APIC ID (assuming x2APIC addressing).
pub fn x2apic_logical_cluster_id(&self) -> u32
[src]
Returns the cluster ID a given APIC ID belongs to (assuming x2APIC addressing).
Trait Implementations
impl Clone for ApicId
[src]
fn clone(&self) -> ApicId
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ApicId
[src]
impl Debug for ApicId
[src]
impl Eq for ApicId
[src]
impl Into<usize> for ApicId
[src]
impl PartialEq<ApicId> for ApicId
[src]
impl StructuralEq for ApicId
[src]
impl StructuralPartialEq for ApicId
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,