pub enum EncodeError {
PartNumberMissing,
PartBeginOffsetMissing,
PartEndOffsetMissing,
PartOffsetsInvalidRange,
IoError(Error),
}
Expand description
Error enum for errors that can be encountered when validating the encode options or while encoding.
Variants§
PartNumberMissing
Multiple parts (parts > 1), but no part number specified
PartBeginOffsetMissing
Multiple parts (parts > 1), but no begin offset specified
PartEndOffsetMissing
Multiple parts (parts > 1), but no end offset specified
PartOffsetsInvalidRange
Multiple parts (parts > 1), and begin offset larger than end offset
IoError(Error)
I/O Error
Trait Implementations§
Source§impl Debug for EncodeError
impl Debug for EncodeError
Source§impl Display for EncodeError
impl Display for EncodeError
Source§impl From<Error> for EncodeError
impl From<Error> for EncodeError
Source§fn from(error: Error) -> EncodeError
fn from(error: Error) -> EncodeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncodeError
impl !RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl !UnwindSafe for EncodeError
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