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
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
Reflect std::io::ErrorKind::UnexpectedEof
for short data.
Io(Error)
Propagate underlying errors from std::io
.
Tuple Fields of Io
0: Error
read_mp4 terminated without detecting a moov box.
Out of memory
Trait Implementations
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.