pub enum FdtError<'a> {
NotFound(&'static str),
BadMagic,
BadPtr,
BadCell,
BadCellSize(usize),
Eof,
MissingProperty,
Utf8Parse {
data: &'a [u8],
},
FromBytesUntilNull {
data: &'a [u8],
},
}
Variants§
NotFound(&'static str)
BadMagic
The FDT had an invalid magic value.
BadPtr
The given pointer was null.
BadCell
Invalid cell encoding.
BadCellSize(usize)
Unsupported cell size.
Eof
The slice passed in was too small to fit the given total size of the FDT structure.
MissingProperty
Utf8Parse
FromBytesUntilNull
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FdtError<'a>
impl<'a> RefUnwindSafe for FdtError<'a>
impl<'a> Send for FdtError<'a>
impl<'a> Sync for FdtError<'a>
impl<'a> Unpin for FdtError<'a>
impl<'a> UnwindSafe for FdtError<'a>
Blanket Implementations§
Source§impl<T> Background for T
impl<T> Background for T
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