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

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

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])]

Returns the logical address relative to a cluster for a given APIC ID (assuming x2APIC addressing).

Returns the cluster ID a given APIC ID belongs to (assuming x2APIC addressing).

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts this type into the (usually inferred) input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.