pub enum AcpiObject<'a> {
Any,
Integer(u64),
String(&'a str),
Buffer(&'a [u8]),
Package(AcpiObjectPackage),
Reference(AcpiObjectReference),
Processor(AcpiObjectProcessor),
PowerResource(AcpiObjectPowerResource),
}
Expand description
An object used in the processing of ACPI data, mostly AML execution.
Variants§
Any
The object can be any type, or the type is not known. From ACPICA comments: “[Any] is used to indicate a NULL package element or an unresolved named reference.”
Integer(u64)
The object is an integer
String(&'a str)
The object is a string
Buffer(&'a [u8])
The object is a buffer of bytes
Package(AcpiObjectPackage)
The object is a package containing other AML data
Reference(AcpiObjectReference)
The object is a reference to another AcpiObject
Processor(AcpiObjectProcessor)
The object describes the features of a processor
PowerResource(AcpiObjectPowerResource)
The object describes a power resource
Implementations§
Source§impl<'a> AcpiObject<'a>
impl<'a> AcpiObject<'a>
Sourcepub fn get_type(&self) -> AcpiObjectType
pub fn get_type(&self) -> AcpiObjectType
Gets the type of the object
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AcpiObject<'a>
impl<'a> RefUnwindSafe for AcpiObject<'a>
impl<'a> !Send for AcpiObject<'a>
impl<'a> !Sync for AcpiObject<'a>
impl<'a> Unpin for AcpiObject<'a>
impl<'a> UnwindSafe for AcpiObject<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more