#[non_exhaustive]pub enum DecodeError {
Show 16 variants
DecoderPoisoned,
InvalidMagic,
InvalidFrameHeader,
UnsupportedDictionary {
id: u32,
},
WindowTooLarge,
HistoryTooSmall {
required: usize,
provided: usize,
},
BlockScratchTooSmall {
required: usize,
provided: usize,
},
LiteralScratchTooSmall {
required: usize,
provided: usize,
},
InvalidBlock,
InvalidEntropyTable,
InvalidBitstream,
InvalidOffset,
ChecksumMismatch {
expected: u32,
actual: u32,
},
ContentSizeMismatch {
expected: u64,
actual: u64,
},
UnexpectedEof,
ArithmeticOverflow,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DecoderPoisoned
InvalidMagic
InvalidFrameHeader
UnsupportedDictionary
WindowTooLarge
HistoryTooSmall
BlockScratchTooSmall
LiteralScratchTooSmall
InvalidBlock
InvalidEntropyTable
InvalidBitstream
InvalidOffset
ChecksumMismatch
ContentSizeMismatch
UnexpectedEof
ArithmeticOverflow
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
impl Copy for DecodeError
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl Display for DecodeError
impl Display for DecodeError
impl Eq for DecodeError
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnsafeUnpin 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