Enum aml::AmlError [−][src]
pub enum AmlError {}Show variants
UnexpectedEndOfStream, UnexpectedByte(u8), MalformedStream, InvalidNameSeg, InvalidPkgLength, InvalidFieldFlags, IncompatibleValueConversion { current: AmlType, target: AmlType, }, UnterminatedStringConstant, InvalidStringConstant, InvalidRegionSpace(u8), MalformedPackage, MalformedBuffer, WrongParser, EmptyNamesAreInvalid, InvalidNormalizedName(AmlName), RootHasNoParent, LevelDoesNotExist(AmlName), ValueDoesNotExist(AmlName), NameCollision(AmlName), TriedToRemoveRootNamespace, NotExecutingControlMethod, InvalidArgAccess(u8), InvalidLocalAccess(u8), PrtInvalidAddress, PrtInvalidPin, PrtInvalidSource, PrtInvalidGsi, PrtNoEntry, ReservedResourceType, ResourceDescriptorTooShort, ResourceDescriptorTooLong, UnexpectedResourceType, InvalidStatusObject, InvalidShiftLeft, InvalidShiftRight, FieldRegionIsNotOpRegion, FieldInvalidAddress, FieldInvalidAccessSize, TypeCannotBeCompared(AmlType),
Variants
Produced when the stream evaluates to something other than nothing or an error.
Produced when a DefPackage
contains a different number of elements to the package’s length.
Produced when a DefBuffer
contains more bytes that its size.
Emitted by a parser when it’s clear that the stream doesn’t encode the object parsed by
that parser (e.g. the wrong opcode starts the stream). This is handled specially by some
parsers such as or
and choice!
.
InvalidNormalizedName(AmlName)
Produced when trying to normalize a path that does not point to a valid level of the
namespace. E.g. \_SB.^^PCI0
goes above the root of the namespace. The contained value is the name that
normalization was attempted upon.
LevelDoesNotExist(AmlName)
Produced when a sub-level or value is added to a level that has not yet been added to the namespace. The
AmlName
is the name of the entire sub-level/value.
ValueDoesNotExist(AmlName)
NameCollision(AmlName)
Produced when two values with the same name are added to the namespace.
Produced when AML tries to do something only possible in a control method (e.g. read from an argument) when there’s no control method executing.
Produced when a method accesses an argument it does not have (e.g. a method that takes 2
arguments accesses Arg4
). The inner value is the number of the argument accessed.
Produced when a method accesses a local that it has not stored into.
Produced when the PRT doesn’t contain an entry for the requested address + pin
TypeCannotBeCompared(AmlType)
Trait Implementations
impl Clone for AmlError
[src]
fn clone(&self) -> AmlError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AmlError
[src]
impl Eq for AmlError
[src]
impl PartialEq<AmlError> for AmlError
[src]
impl StructuralEq for AmlError
[src]
impl StructuralPartialEq for AmlError
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,