[][src]Struct aml::Namespace

pub struct Namespace { /* fields omitted */ }

Methods

impl Namespace[src]

pub fn new() -> Namespace[src]

pub fn add(
    &mut self,
    path: AmlName,
    value: AmlValue
) -> Result<AmlHandle, AmlError>
[src]

Add a value to the namespace at the given path, which must be a normalized, absolute AML name. If you want to add at a path relative to a given scope, use add_at_resolved_path instead.

pub fn add_at_resolved_path(
    &mut self,
    path: AmlName,
    scope: &AmlName,
    value: AmlValue
) -> Result<AmlHandle, AmlError>
[src]

Helper method for adding a value to the namespace at a path that is relative to the given scope. This operation involves a lot of error handling in parts of the parser, so is encapsulated here.

pub fn get(&self, handle: AmlHandle) -> Result<&AmlValue, AmlError>[src]

pub fn get_by_path(&self, path: &AmlName) -> Result<&AmlValue, AmlError>[src]

pub fn get_mut(&mut self, handle: AmlHandle) -> Result<&mut AmlValue, AmlError>[src]

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

pub fn search(
    &self,
    path: &AmlName,
    starting_scope: &AmlName
) -> Result<AmlHandle, AmlError>
[src]

Search for an object at the given path of the namespace, applying the search rules described in §5.3 of the ACPI specification, if they are applicable. Returns the handle of the first valid object, if found.

Trait Implementations

impl Debug for Namespace[src]

Auto Trait Implementations

impl Unpin for Namespace

impl Sync for Namespace

impl Send for Namespace

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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