[−][src]Struct aml::Namespace
Methods
impl Namespace
[src]
pub fn new() -> Namespace
[src]
pub fn add(
&mut self,
path: AmlName,
value: AmlValue
) -> Result<AmlHandle, AmlError>
[src]
&mut self,
path: AmlName,
value: AmlValue
) -> Result<AmlHandle, AmlError>
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]
&mut self,
path: AmlName,
scope: &AmlName,
value: AmlValue
) -> Result<AmlHandle, AmlError>
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]
&mut self,
path: &AmlName
) -> Result<&mut AmlValue, AmlError>
pub fn search(
&self,
path: &AmlName,
starting_scope: &AmlName
) -> Result<AmlHandle, AmlError>
[src]
&self,
path: &AmlName,
starting_scope: &AmlName
) -> Result<AmlHandle, AmlError>
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,