Enum mp4parse::Error[][src]

pub enum Error {
    InvalidData(&'static str),
    Unsupported(&'static str),
    UnsupportedDetail(Status, &'static str),
    UnexpectedEOF,
    Io(Error),
    NoMoov,
    OutOfMemory,
}
Expand description

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.

Tuple Fields of InvalidData

0: &'static str
Unsupported(&'static str)

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

Tuple Fields of Unsupported

0: &'static str
UnsupportedDetail(Status, &'static str)

Similar to Self::Unsupported, but for errors that have a specific Status variant for communicating the detail across FFI. See the helper From<Status> for Error

Tuple Fields of UnsupportedDetail

0: Status1: &'static str
UnexpectedEOF

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

Io(Error)

Propagate underlying errors from std::io.

Tuple Fields of Io

0: Error
NoMoov

read_mp4 terminated without detecting a moov box.

OutOfMemory

Out of memory

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

For convenience of creating an error for an unsupported feature which we want to communicate the specific feature back to the C API caller

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.