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

Failed to read data from slice.

ParseError

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 From<SliceReadError> for DeviceTreeError

fn from(e: SliceReadError) -> DeviceTreeError

impl From<Utf8Error> for DeviceTreeError

fn from(_: Utf8Error) -> DeviceTreeError

Derived Implementations

impl Debug for DeviceTreeError

fn fmt(&self, __arg_0: &mut Formatter) -> Result