[][src]Struct aml::AmlContext

pub struct AmlContext {
    pub namespace: Namespace,
    // some fields omitted
}

Fields

namespace: Namespace

Implementations

impl AmlContext[src]

pub fn new(
    handler: Box<dyn Handler>,
    legacy_mode: bool,
    debug_verbosity: DebugVerbosity
) -> AmlContext
[src]

Creates a new AmlContext - the central type in managing the AML tables. Only one of these should be created, and it should be passed the DSDT and all SSDTs defined by the hardware.

Legacy mode

If true is passed in legacy_mode, the library will try and remain compatible with a ACPI 1.0 implementation. The following changes/assumptions are made: - Two extra root namespaces are predefined: \_PR and _TZ - Processors are expected to be defined with DefProcessor, instead of DefDevice - Processors are expected to be found in \_PR, instead of \_SB - Thermal zones are expected to be found in \_TZ, instead of \_SB

pub fn parse_table(&mut self, stream: &[u8]) -> Result<(), AmlError>[src]

pub fn invoke_method(
    &mut self,
    path: &AmlName,
    args: Args
) -> Result<AmlValue, AmlError>
[src]

pub fn initialize_objects(&mut self) -> Result<(), AmlError>[src]

Auto Trait Implementations

impl !Send for AmlContext

impl !Sync for AmlContext

impl Unpin for AmlContext

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.