Enum x86::apic::ApicId[][src]

pub enum ApicId {
    XApic(u8),
    X2Apic(u32),
}

Encodes the id of a core.

Variants

XApic(u8)

A core destination encoded as an xAPIC ID.

X2Apic(u32)

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]

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

impl Send for ApicId

impl Sync for ApicId

impl Unpin for ApicId

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.