pub enum DevTreeError {
InvalidParameter(&'static str),
InvalidMagicNumber,
InvalidOffset,
ParseError,
StrError(Utf8Error),
NotEnoughMemory,
}
Expand description
An error describe parsing problems when creating device trees.
Variants§
InvalidParameter(&'static str)
InvalidMagicNumber
The magic number FDT_MAGIC was not found at the start of the structure.
InvalidOffset
Unable to safely read data from the given device tree using the supplied offset
ParseError
The data was not formatted as expected. This likely indicates an error in the Device Tree we’re parsing.
StrError(Utf8Error)
While trying to convert a string that was supposed to be ASCII, invalid
str
sequences were encounter.
NotEnoughMemory
There wasn’t enough memory to create a DevTreeIndex
.
Trait Implementations§
Source§impl Clone for DevTreeError
impl Clone for DevTreeError
Source§fn clone(&self) -> DevTreeError
fn clone(&self) -> DevTreeError
Returns a copy 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 DevTreeError
impl Debug for DevTreeError
Source§impl Display for DevTreeError
impl Display for DevTreeError
Source§impl From<Utf8Error> for DevTreeError
impl From<Utf8Error> for DevTreeError
Source§fn from(e: Utf8Error) -> DevTreeError
fn from(e: Utf8Error) -> DevTreeError
Converts to this type from the input type.
Source§impl PartialEq for DevTreeError
impl PartialEq for DevTreeError
impl Copy for DevTreeError
impl Eq for DevTreeError
impl StructuralPartialEq for DevTreeError
Auto Trait Implementations§
impl Freeze for DevTreeError
impl RefUnwindSafe for DevTreeError
impl Send for DevTreeError
impl Sync for DevTreeError
impl Unpin for DevTreeError
impl UnwindSafe for DevTreeError
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