Struct acpi::platform::PlatformInfo[][src]

pub struct PlatformInfo {
    pub power_profile: PowerProfile,
    pub interrupt_model: InterruptModel,
    pub processor_info: Option<ProcessorInfo>,
    pub pm_timer: Option<PmTimer>,
}

PlatformInfo allows the collection of some basic information about the platform from some of the fixed-size tables in a nice way. It requires access to the FADT and MADT. It is the easiest way to get information about the processors and interrupt controllers on a platform.

Fields

power_profile: PowerProfileinterrupt_model: InterruptModelprocessor_info: Option<ProcessorInfo>

On x86_64 platforms that support the APIC, the processor topology must also be inferred from the interrupt model. That information is stored here, if present.

pm_timer: Option<PmTimer>

Implementations

impl PlatformInfo[src]

pub fn new<H>(tables: &AcpiTables<H>) -> Result<PlatformInfo, AcpiError> where
    H: AcpiHandler
[src]

Auto Trait Implementations

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.