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§
Source§impl From<FdtError<'_>> for DriverError
impl From<FdtError<'_>> for DriverError
Source§fn from(value: FdtError<'_>) -> DriverError
fn from(value: FdtError<'_>) -> DriverError
Converts to this type from the input type.
Source§impl From<FdtError<'_>> for OnProbeError
impl From<FdtError<'_>> for OnProbeError
Source§fn from(value: FdtError<'_>) -> OnProbeError
fn from(value: FdtError<'_>) -> OnProbeError
Converts to this type from the input type.
Source§impl From<FdtError<'_>> for ProbeError
impl From<FdtError<'_>> for ProbeError
Source§fn from(value: FdtError<'_>) -> ProbeError
fn from(value: FdtError<'_>) -> ProbeError
Converts to this type from the input type.
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