pub enum HpackDecodeError {
Show 15 variants
Representation(HpackRepresentationParseError),
IndexNotRepresentable {
index: u64,
},
UnavailableIndex {
index: u64,
},
MaximumSizeNotRepresentable {
maximum_size: u64,
},
AllowedMaximumExceedsCapacity {
allowed: usize,
capacity: usize,
},
DynamicTableSizeUpdateRequired,
DynamicTableSizeUpdateMismatch {
expected: usize,
requested: usize,
},
DynamicTableSizeUpdateAfterField,
DynamicTableSizeUpdateExceedsAllowed {
requested: usize,
allowed: usize,
},
DynamicTableSizeUpdate(HpackDynamicTableError),
HuffmanName(HpackHuffmanDecodeError),
HuffmanValue(HpackHuffmanDecodeError),
DecodedLengthOverflow,
EntrySizeOverflow,
OutputTooShort {
required: usize,
available: usize,
},
}Expand description
Failure to construct or advance an HPACK block decoder.
Variants§
Representation(HpackRepresentationParseError)
A representation could not be parsed.
IndexNotRepresentable
A combined static/dynamic table index cannot be represented as usize.
A combined static/dynamic table index is unavailable.
MaximumSizeNotRepresentable
A dynamic-table update cannot be represented as usize.
AllowedMaximumExceedsCapacity
The configured allowed maximum exceeds the table’s physical capacity.
DynamicTableSizeUpdateRequired
A required leading dynamic-table size update has not been received.
DynamicTableSizeUpdateMismatch
A leading dynamic-table update did not match the exact pending value.
DynamicTableSizeUpdateAfterField
A dynamic-table update appeared after a header field.
DynamicTableSizeUpdateExceedsAllowed
A dynamic-table update exceeds the decoder’s configured allowed maximum.
DynamicTableSizeUpdate(HpackDynamicTableError)
Applying a dynamic-table update failed.
HuffmanName(HpackHuffmanDecodeError)
Decoding a literal name’s Huffman bytes failed.
HuffmanValue(HpackHuffmanDecodeError)
Decoding a literal value’s Huffman bytes failed.
DecodedLengthOverflow
Name and value lengths cannot be added as usize.
EntrySizeOverflow
The RFC dynamic-table entry-size calculation overflowed usize.
OutputTooShort
The caller output cannot contain the complete decoded field.