pub enum Error {
UnsupportedFormat,
ParseFailed {
reason: String,
},
IndexNotFound {
reason: String,
},
FetchFailed(Box<dyn Error + Send + Sync>),
}Expand description
All errors that can be produced by media-seek.
Variants§
UnsupportedFormat
The container format is not recognised (MHTML, plaintext, or unknown magic bytes).
ParseFailed
The container index could not be parsed (truncated data, invalid structure, etc.).
IndexNotFound
The container format was detected but no seek index was found in the probe.
This may occur when a classic MP4’s moov box is beyond the probe window, or when
neither a SIDX box nor a moov box are present within the probed bytes.
FetchFailed(Box<dyn Error + Send + Sync>)
An extra Range fetch required by the parser failed (WebM Cues, AVI idx1, MPEG-TS PCR, OGG bisection).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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