pub enum QpackFieldSectionDecodeError {
Prefix(QpackFieldSectionPrefixParseError),
Context(QpackFieldSectionContextError),
FieldLines(QpackFieldLinesParseError),
StaticIndexOutOfRange {
index: u64,
},
DynamicReference(QpackDynamicTableError),
LiteralNameHuffman(QpackHuffmanDecodeError),
ValueHuffman(QpackHuffmanDecodeError),
OutputBytesTooShort {
required: usize,
available: usize,
},
OutputFieldsTooShort {
required: usize,
available: usize,
},
OutputLengthOverflow,
}Expand description
A failure to semantically decode one QPACK field section.
Variants§
Prefix(QpackFieldSectionPrefixParseError)
The field-section prefix is malformed.
Context(QpackFieldSectionContextError)
The field-section prefix cannot be resolved for this decoder context.
FieldLines(QpackFieldLinesParseError)
The encoded field-line sequence is malformed.
StaticIndexOutOfRange
A static-table index is outside RFC 9204 Appendix A.
DynamicReference(QpackDynamicTableError)
A dynamic-table reference is invalid for this field section.
LiteralNameHuffman(QpackHuffmanDecodeError)
A literal field name has invalid Huffman coding.
ValueHuffman(QpackHuffmanDecodeError)
A field value has invalid Huffman coding.
OutputBytesTooShort
The caller byte output cannot contain the decoded section.
OutputFieldsTooShort
The caller metadata output cannot contain the decoded section.
OutputLengthOverflow
Counting packed output bytes or fields overflowed usize.
Implementations§
Source§impl QpackFieldSectionDecodeError
impl QpackFieldSectionDecodeError
Sourcepub const fn is_decompression_failed(self) -> bool
pub const fn is_decompression_failed(self) -> bool
Returns whether this error represents QPACK decompression failure.
Sourcepub const fn is_output_provisioning_error(self) -> bool
pub const fn is_output_provisioning_error(self) -> bool
Returns whether this error is solely insufficient caller output provisioning.
Trait Implementations§
Source§impl Clone for QpackFieldSectionDecodeError
impl Clone for QpackFieldSectionDecodeError
impl Copy for QpackFieldSectionDecodeError
Source§impl Debug for QpackFieldSectionDecodeError
impl Debug for QpackFieldSectionDecodeError
impl Eq for QpackFieldSectionDecodeError
Source§impl Error for QpackFieldSectionDecodeError
impl Error for QpackFieldSectionDecodeError
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()