#[non_exhaustive]
pub enum InterruptModel<'a, A>where A: Allocator,{ Unknown, Apic(Apic<'a, A>), }

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Unknown

This model is only chosen when the MADT does not describe another interrupt model. On x86_64 platforms, this probably means only the legacy i8259 PIC is present.

§

Apic(Apic<'a, A>)

Describes an interrupt controller based around the Advanced Programmable Interrupt Controller (any of APIC, XAPIC, or X2APIC). These are likely to be found on x86 and x86_64 systems and are made up of a Local APIC for each core and one or more I/O APICs to handle external interrupts.

Trait Implementations§

source§

impl<'a, A> Debug for InterruptModel<'a, A>where A: Allocator + Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, A> RefUnwindSafe for InterruptModel<'a, A>where A: RefUnwindSafe,

§

impl<'a, A> Send for InterruptModel<'a, A>where A: Send,

§

impl<'a, A> Sync for InterruptModel<'a, A>where A: Sync,

§

impl<'a, A> Unpin for InterruptModel<'a, A>where A: Unpin,

§

impl<'a, A> !UnwindSafe for InterruptModel<'a, A>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.