pub enum DecodeError {
IncompleteData {
expected_size: usize,
actual_size: usize,
},
InvalidHeader {
line: String,
position: usize,
},
InvalidChecksum,
IoError(Error),
}
Expand description
Error enum for errors that can be encountered while decoding.
Variants§
IncompleteData
Fewer or more bytes than expected.
Fields
InvalidHeader
The header or footer line contains unexpected characters or is incomplete.
Fields
InvalidChecksum
CRC32 checksum of the part is not the expected checksum.
IoError(Error)
An I/O error occurred.
Trait Implementations§
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl Display for DecodeError
impl Display for DecodeError
Source§impl From<Error> for DecodeError
impl From<Error> for DecodeError
Source§fn from(error: Error) -> DecodeError
fn from(error: Error) -> DecodeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecodeError
impl !RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl !UnwindSafe for DecodeError
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