[][src]Enum fdt_rs::error::DevTreeError

pub enum DevTreeError {
    InvalidParameter(&'static str),
    InvalidMagicNumber,
    InvalidOffset,
    ParseError,
    StrError(Utf8Error),
    NotEnoughMemory,
}

An error describe parsing problems when creating device trees.

Variants

InvalidParameter(&'static str)
InvalidMagicNumber

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

InvalidOffset

Unable to safely read data from the given device tree using the supplied offset

ParseError

The data was not formatted as expected. This likely indicates an error in the Device Tree we're parsing.

StrError(Utf8Error)

While trying to convert a string that was supposed to be ASCII, invalid str sequences were encounter.

NotEnoughMemory

There wasn't enough memory to create a DevTreeIndex.

Trait Implementations

impl Clone for DevTreeError[src]

impl Copy for DevTreeError[src]

impl Debug for DevTreeError[src]

impl Display for DevTreeError[src]

impl Eq for DevTreeError[src]

impl From<Utf8Error> for DevTreeError[src]

impl PartialEq<DevTreeError> for DevTreeError[src]

impl StructuralEq for DevTreeError[src]

impl StructuralPartialEq for DevTreeError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.