pub enum HpackEncodeError {
Show 16 variants
AllowedMaximumExceedsCapacity {
allowed: usize,
capacity: usize,
},
DynamicTableSizeUpdateRequired,
DynamicTableSizeUpdateMismatch {
expected: usize,
requested: usize,
},
DynamicTableSizeUpdateAfterField,
DynamicTableSizeUpdateExceedsAllowed {
requested: usize,
allowed: usize,
},
IndexNotRepresentable {
index: u64,
},
UnavailableIndex {
index: usize,
},
IndexedLiteralNameMismatch {
index: u64,
},
HuffmanNameForIndexedName,
HuffmanName(HpackHuffmanEncodeError),
HuffmanValue(HpackHuffmanEncodeError),
StringLengthNotRepresentable {
length: usize,
},
RepresentationLengthOverflow,
DynamicTableEntrySize(HpackDynamicTableError),
MaximumSizeNotRepresentable {
maximum_size: usize,
},
Representation(HpackRepresentationBuildError),
}Expand description
Failure to construct or advance an HPACK block encoder.
Variants§
AllowedMaximumExceedsCapacity
The configured allowed maximum exceeds the table’s physical capacity.
DynamicTableSizeUpdateRequired
A required leading dynamic-table size update has not been emitted.
DynamicTableSizeUpdateMismatch
A required leading dynamic-table size update did not match the exact pending value.
DynamicTableSizeUpdateAfterField
A dynamic-table update was requested after a header field.
DynamicTableSizeUpdateExceedsAllowed
A dynamic-table update exceeds the encoder’s configured allowed maximum.
IndexNotRepresentable
A combined static/dynamic table index cannot be represented on the wire.
A combined static/dynamic table index is unavailable.
IndexedLiteralNameMismatch
An indexed literal name did not match the supplied decoded name.
HuffmanNameForIndexedName
Huffman name encoding was requested for an indexed name with no emitted name bytes.
HuffmanName(HpackHuffmanEncodeError)
Huffman encoding a literal name failed during preflight.
HuffmanValue(HpackHuffmanEncodeError)
Huffman encoding a literal value failed during preflight.
StringLengthNotRepresentable
An encoded string length cannot be represented by the HPACK integer format.
RepresentationLengthOverflow
The exact HPACK literal representation length overflows usize.
DynamicTableEntrySize(HpackDynamicTableError)
Calculating an incremental-indexing entry size failed before output was written.
MaximumSizeNotRepresentable
A dynamic-table maximum cannot be represented on the wire.
Representation(HpackRepresentationBuildError)
A representation could not be built in the supplied destination.