#[non_exhaustive]pub enum FdtErrorKind {
InvalidMagic,
UnsupportedVersion(u32),
InvalidLength,
InvalidHeader(&'static str),
BadToken(u32),
InvalidOffset,
InvalidString,
MemReserveNotTerminated,
MemReserveInvalid,
}Expand description
The kind of an error that can occur when parsing a device tree.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidMagic
The magic number of the device tree is invalid.
UnsupportedVersion(u32)
The Device Tree version is not supported by this library.
InvalidLength
The length of the device tree is invalid.
InvalidHeader(&'static str)
The header failed validation.
BadToken(u32)
An invalid token was encountered.
InvalidOffset
A read from data at invalid offset was attempted.
InvalidString
An invalid string was encountered.
MemReserveNotTerminated
Memory reservation block has not been terminated with a null entry.
MemReserveInvalid
Memory reservation block has an entry that is unaligned or has invalid size.
Trait Implementations§
Source§impl Clone for FdtErrorKind
impl Clone for FdtErrorKind
Source§fn clone(&self) -> FdtErrorKind
fn clone(&self) -> FdtErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FdtErrorKind
impl Debug for FdtErrorKind
Source§impl Display for FdtErrorKind
impl Display for FdtErrorKind
Source§impl Error for FdtErrorKind
impl Error for FdtErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for FdtErrorKind
impl PartialEq for FdtErrorKind
impl Eq for FdtErrorKind
impl StructuralPartialEq for FdtErrorKind
Auto Trait Implementations§
impl Freeze for FdtErrorKind
impl RefUnwindSafe for FdtErrorKind
impl Send for FdtErrorKind
impl Sync for FdtErrorKind
impl Unpin for FdtErrorKind
impl UnwindSafe for FdtErrorKind
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