#[non_exhaustive]pub enum DecompressBlockError {
BlockContentReadError(Error),
MalformedSectionHeader {
expected_len: usize,
remaining_bytes: usize,
},
DecompressLiteralsError(DecompressLiteralsError),
LiteralsSectionParseError(LiteralsSectionParseError),
SequencesHeaderParseError(SequencesHeaderParseError),
DecodeSequenceError(DecodeSequenceError),
ExecuteSequencesError(ExecuteSequencesError),
ExpandsPastBlockMaximum {
size: usize,
maximum: usize,
},
ContentPastBlockMaximum {
size: usize,
maximum: usize,
},
LiteralsOutputOverflow {
tail: usize,
requested: usize,
capacity: usize,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BlockContentReadError(Error)
MalformedSectionHeader
DecompressLiteralsError(DecompressLiteralsError)
LiteralsSectionParseError(LiteralsSectionParseError)
SequencesHeaderParseError(SequencesHeaderParseError)
DecodeSequenceError(DecodeSequenceError)
ExecuteSequencesError(ExecuteSequencesError)
ExpandsPastBlockMaximum
The block’s literals, or its whole output, run past the block maximum
(RFC 8878 3.1.1.2.4, Block_Maximum_Size): size bytes where
maximum is the most a block of this frame may produce, the smaller of
its window and 128 KiB.
ContentPastBlockMaximum
A compressed block’s content is size bytes, past the block maximum
(RFC 8878 3.1.1.2.4, Block_Maximum_Size) of maximum, the smaller of
the frame’s window and 128 KiB, whatever it would decode to.
LiteralsOutputOverflow
A block with no sequences whose literals do not fit a fixed-capacity
backend: requested bytes at tail against capacity. The block is
within the block maximum, so this says the caller’s slice is short, and
the frame decoder turns it into TargetTooSmall (or a content-size
mismatch for a frame that declared one). Growable backends grow instead
and never produce it.
Trait Implementations§
Source§impl Debug for DecompressBlockError
impl Debug for DecompressBlockError
Source§impl Display for DecompressBlockError
impl Display for DecompressBlockError
Source§impl Error for DecompressBlockError
Available on crate feature std only.
impl Error for DecompressBlockError
std only.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()