Enum mp4parse::Error [] [src]

pub enum Error {
    InvalidData(&'static str),
    Unsupported(&'static str),
    UnexpectedEOF,
    Io(Error),
    NoMoov,
}

Describes parser failures.

This enum wraps the standard io::Error type, unified with our own parser error states and those of crates we use.

Variants

InvalidData(&'static str)

Parse error caused by corrupt or malformed data.

Unsupported(&'static str)

Parse error caused by limited parser support rather than invalid data.

UnexpectedEOF

Reflect std::io::ErrorKind::UnexpectedEof for short data.

Io(Error)

Propagate underlying errors from std::io.

NoMoov

read_mp4 terminated without detecting a moov box.

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

fn from(_: FromUtf8Error) -> Error

Performs the conversion.