Enum webm_iterable::errors::TagIteratorError
source · pub enum TagIteratorError {
CorruptedFileData(CorruptedFileError),
UnexpectedEOF {
tag_start: usize,
tag_id: Option<u64>,
tag_size: Option<usize>,
partial_data: Option<Vec<u8>>,
},
CorruptedTagData {
tag_id: u64,
problem: ToolError,
},
ReadError {
source: Error,
},
}
Expand description
Errors that can occur when reading ebml data.
Variants§
CorruptedFileData(CorruptedFileError)
An error indicating that data in the file being read is not valid.
UnexpectedEOF
An error indicating that the iterator reached the end of the input stream unexpectedly while reading a tag.
This error will occur if the iterator is expecting more data (either due to expecting a size after reading a tag id or based on a tag size) but nothing is available in the input stream.
Fields
CorruptedTagData
An error indicating that tag data appears to be corrupted.
This error typically occurs if tag data cannot be read as its expected data type (e.g. trying to read [32,42,8]
as float data, since floats require either 4 or 8 bytes).
Fields
ReadError
An error that wraps an IO error when reading from the underlying source.
Trait Implementations§
source§impl Debug for TagIteratorError
impl Debug for TagIteratorError
source§impl Display for TagIteratorError
impl Display for TagIteratorError
source§impl Error for TagIteratorError
impl Error for TagIteratorError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 TagIteratorError
impl !RefUnwindSafe for TagIteratorError
impl Send for TagIteratorError
impl Sync for TagIteratorError
impl Unpin for TagIteratorError
impl !UnwindSafe for TagIteratorError
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