Enum ebml_iterable::error::TagWriterError
source · [−]pub enum TagWriterError {
TagSizeError(String),
UnexpectedClosingTag {
tag_id: u64,
expected_id: Option<u64>,
},
WriteError {
source: Error,
},
}Expand description
Errors that can occur when writing ebml data.
Variants
TagSizeError(String)
An error with the size of a tag.
Can occur if the tag size overflows the max value representable by a vint (2^57 - 1, or 144,115,188,075,855,871).
This can also occur if a non-Master tag is sent to be written with an unknown size.
UnexpectedClosingTag
Fields
tag_id: u64The id of the tag being closed.
An error indicating a tag was closed unexpectedly.
Can occur if a Master::End variant is passed to the TagWriter but the id doesn’t match the currently open tag.
WriteError
Fields
source: ErrorAn error that wraps an IO error when writing to the underlying destination.
Trait Implementations
sourceimpl Debug for TagWriterError
impl Debug for TagWriterError
sourceimpl Display for TagWriterError
impl Display for TagWriterError
sourceimpl Error for TagWriterError
impl Error for TagWriterError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for TagWriterError
impl Send for TagWriterError
impl Sync for TagWriterError
impl Unpin for TagWriterError
impl !UnwindSafe for TagWriterError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more