#[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,
},
LiteralsOutputOverflow {
tail: usize,
requested: usize,
capacity: usize,
},
}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.
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.
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
Available on crate feature
std only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DecodeSequenceError> for DecompressBlockError
impl From<DecodeSequenceError> for DecompressBlockError
Source§fn from(val: DecodeSequenceError) -> Self
fn from(val: DecodeSequenceError) -> Self
Converts to this type from the input type.
Source§impl From<DecompressBlockError> for DecodeBlockContentError
impl From<DecompressBlockError> for DecodeBlockContentError
Source§fn from(val: DecompressBlockError) -> Self
fn from(val: DecompressBlockError) -> Self
Converts to this type from the input type.
Source§impl From<DecompressLiteralsError> for DecompressBlockError
impl From<DecompressLiteralsError> for DecompressBlockError
Source§fn from(val: DecompressLiteralsError) -> Self
fn from(val: DecompressLiteralsError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DecompressBlockError
impl From<Error> for DecompressBlockError
Source§impl From<ExecuteSequencesError> for DecompressBlockError
impl From<ExecuteSequencesError> for DecompressBlockError
Source§fn from(val: ExecuteSequencesError) -> Self
fn from(val: ExecuteSequencesError) -> Self
Converts to this type from the input type.
Source§impl From<LiteralsSectionParseError> for DecompressBlockError
impl From<LiteralsSectionParseError> for DecompressBlockError
Source§fn from(val: LiteralsSectionParseError) -> Self
fn from(val: LiteralsSectionParseError) -> Self
Converts to this type from the input type.
Source§impl From<SequencesHeaderParseError> for DecompressBlockError
impl From<SequencesHeaderParseError> for DecompressBlockError
Source§fn from(val: SequencesHeaderParseError) -> Self
fn from(val: SequencesHeaderParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DecompressBlockError
impl !UnwindSafe for DecompressBlockError
impl Freeze for DecompressBlockError
impl Send for DecompressBlockError
impl Sync for DecompressBlockError
impl Unpin for DecompressBlockError
impl UnsafeUnpin for DecompressBlockError
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