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

The magic number MAGIC_NUMBER was not found at the start of the structure.

An offset or size found inside the device tree is outside of what was supplied to load().

Failed to read data from slice.

The data format was not as expected at the given position

While trying to convert a string that was supposed to be ASCII, invalid utf8 sequences were encounted

The device tree version is not supported by this library.

Trait Implementations

impl Debug for DeviceTreeError
[src]

Formats the value using the given formatter.

impl From<SliceReadError> for DeviceTreeError
[src]

Performs the conversion.

impl From<Utf8Error> for DeviceTreeError
[src]

Performs the conversion.