pub enum DecompressError {
Show 17 variants
BadMagic,
BadFrameHeader,
BadBlockHeader,
BadBlockType,
CorruptLiterals,
CorruptSequences,
BadFseTable,
BadHuffmanWeights,
BadHuffmanStream,
WindowTooLarge {
requested: u64,
max: u64,
},
OutputTooSmall,
ChecksumMismatch {
expected: u32,
got: u32,
},
DictMismatch {
expected: u32,
got: u32,
},
DictRequired,
InvalidDictionary,
InputExhausted,
ExtraBytes,
}Expand description
Error returned by decompression functions.
Variants§
BadMagic
Frame magic number is not 0xFD2F_B528.
BadFrameHeader
Frame descriptor or field sizes are invalid.
BadBlockHeader
Block header contains invalid values.
BadBlockType
Block type field is reserved/unknown.
CorruptLiterals
Literals section is malformed or truncated.
CorruptSequences
Sequences section is malformed, or decoded output exceeds block size.
BadFseTable
FSE table description is invalid.
BadHuffmanWeights
Huffman weight table is malformed.
BadHuffmanStream
Huffman bitstream decoding failed.
WindowTooLarge
Requested window size exceeds the implementation limit.
OutputTooSmall
Decompressed output would exceed the configured size limit.
ChecksumMismatch
Content checksum does not match the decompressed data.
DictMismatch
Frame requires dictionary ID expected, but got was provided.
DictRequired
Frame requires a dictionary but none was provided.
InvalidDictionary
Dictionary bytes failed to parse.
InputExhausted
Input ended before the frame was complete.
ExtraBytes
Unexpected trailing bytes after a valid frame.
Trait Implementations§
Source§impl Clone for DecompressError
impl Clone for DecompressError
Source§fn clone(&self) -> DecompressError
fn clone(&self) -> DecompressError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DecompressError
impl Debug for DecompressError
Source§impl Display for DecompressError
impl Display for DecompressError
impl Eq for DecompressError
Source§impl Error for DecompressError
Available on crate feature std only.
impl Error for DecompressError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<DecompressError> for ZstdError
impl From<DecompressError> for ZstdError
Source§fn from(e: DecompressError) -> Self
fn from(e: DecompressError) -> Self
Source§impl PartialEq for DecompressError
impl PartialEq for DecompressError
Source§fn eq(&self, other: &DecompressError) -> bool
fn eq(&self, other: &DecompressError) -> bool
self and other values to be equal, and is used by ==.