pub enum Error {
Truncated,
IntegerOverflow,
InvalidIndex,
Huffman,
InvalidTableSizeUpdate,
HeaderListTooLarge,
}Expand description
HPACK decoding errors. Every error except Error::HeaderListTooLarge leaves the decoder
out of step with the peer’s encoder and maps to the HTTP/2 connection error
COMPRESSION_ERROR.
Variants§
Truncated
The block ends in the middle of a representation.
IntegerOverflow
A prefix integer is too large.
InvalidIndex
An index outside the static and dynamic tables (or index 0).
Huffman
Invalid Huffman data: EOS in the string, bad or overlong padding.
InvalidTableSizeUpdate
A dynamic table size update above the allowed maximum or after the first field.
HeaderListTooLarge
The decoded list is larger than the cap. The block was still decoded completely, so the decoder stays in step with the encoder and the connection can continue; fields after the limit were not passed to the callback.
Trait Implementations§
impl Copy for Error
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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