pub enum Mp4ScanError {
Io(Error),
Format(FormatError),
MetadataTooLarge {
box_kind: &'static str,
size: u64,
cap: u64,
},
}Expand description
Error from the seeking MP4 reader: an IO failure reading the file, or a
structural/format problem. Kept distinct so the core layer can map IO to
CoreError::Io (preserving errno) and format to CoreError::Format.
Variants§
Trait Implementations§
Source§impl Debug for Mp4ScanError
impl Debug for Mp4ScanError
Source§impl Display for Mp4ScanError
impl Display for Mp4ScanError
Source§impl Error for Mp4ScanError
impl Error for Mp4ScanError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for Mp4ScanError
impl From<Error> for Mp4ScanError
Source§impl From<FormatError> for Mp4ScanError
impl From<FormatError> for Mp4ScanError
Source§fn from(source: FormatError) -> Self
fn from(source: FormatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Mp4ScanError
impl !UnwindSafe for Mp4ScanError
impl Freeze for Mp4ScanError
impl Send for Mp4ScanError
impl Sync for Mp4ScanError
impl Unpin for Mp4ScanError
impl UnsafeUnpin for Mp4ScanError
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