Enum beam_file::Error [] [src]

pub enum Error {
    Io(Error),
    InvalidString(Utf8Error),
    UnexpectedMagicNumber {
        magic_number: [u8; 4],
    },
    UnexpectedFormType {
        form_type: [u8; 4],
    },
    UnexpectedChunk {
        id: Id,
        expected: Id,
    },
}

Variants

Fields of UnexpectedMagicNumber

Fields of UnexpectedFormType

Fields of UnexpectedChunk

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Utf8Error> for Error
[src]

[src]

Performs the conversion.