pub enum Error {
InvalidData(&'static str),
Unsupported(&'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.
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.
OutOfMemory
Out of memory
Trait Implementations§
Source§impl From<BitReaderError> for Error
impl From<BitReaderError> for Error
Source§fn from(_: BitReaderError) -> Error
fn from(_: BitReaderError) -> Error
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(_: FromUtf8Error) -> Error
fn from(_: FromUtf8Error) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more