pub enum DecodeErrorStatus {
InsufficientData,
Generic(&'static str),
GenericStr(String),
CorruptData,
OutputLimitExceeded(usize, usize),
MismatchedCRC(u32, u32),
MismatchedAdler(u32, u32),
}
Variants§
InsufficientData
Input data is not enough to construct a full output
Generic(&'static str)
Anything that isn’t significant
GenericStr(String)
Anything that isn’t significant but we need to pass back information to the user as to what went wrong
CorruptData
Input data was malformed.
OutputLimitExceeded(usize, usize)
Limit set by the user was exceeded by decompressed output
MismatchedCRC(u32, u32)
Output CRC does not match stored CRC.
Only present for zlib
MismatchedAdler(u32, u32)
Output Adler does not match stored adler
Only present for gzip
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DecodeErrorStatus
impl RefUnwindSafe for DecodeErrorStatus
impl Send for DecodeErrorStatus
impl Sync for DecodeErrorStatus
impl Unpin for DecodeErrorStatus
impl UnwindSafe for DecodeErrorStatus
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