Enum device_tree::DeviceTreeError
[−]
[src]
pub enum DeviceTreeError { InvalidMagicNumber, SizeMismatch, SliceReadError(SliceReadError), ParseError(usize), Utf8Error, VersionNotSupported, }
An error describe parsing problems when creating device trees.
Variants
InvalidMagicNumber
The magic number MAGIC_NUMBER
was not found at the start of the
structure.
SizeMismatch
An offset or size found inside the device tree is outside of what was
supplied to load()
.
SliceReadError(SliceReadError)
Failed to read data from slice.
ParseError(usize)
The data format was not as expected at the given position
Utf8Error
While trying to convert a string that was supposed to be ASCII, invalid utf8 sequences were encounted
VersionNotSupported
The device tree version is not supported by this library.
Trait Implementations
impl Debug for DeviceTreeError
[src]
impl From<SliceReadError> for DeviceTreeError
[src]
fn from(e: SliceReadError) -> DeviceTreeError
Performs the conversion.
impl From<Utf8Error> for DeviceTreeError
[src]
fn from(_: Utf8Error) -> DeviceTreeError
Performs the conversion.