pub enum HpackStringLiteralParseError {
InvalidLength(HpackIntegerParseError),
EncodedLengthNotRepresentable {
encoded_length: u64,
},
TotalLengthOverflow {
length_length: usize,
encoded_length: usize,
},
IncompleteEncodedPayload {
required: usize,
available: usize,
},
}Expand description
Failure to parse an HPACK string literal.
Variants§
InvalidLength(HpackIntegerParseError)
The 7-bit HPACK length integer is malformed, incomplete, or overflows u64.
EncodedLengthNotRepresentable
The decoded length cannot be represented as usize.
TotalLengthOverflow
The length encoding and payload length cannot be added as usize.
Fields
IncompleteEncodedPayload
The input ended before the declared opaque encoded payload.
Trait Implementations§
Source§impl Clone for HpackStringLiteralParseError
impl Clone for HpackStringLiteralParseError
impl Copy for HpackStringLiteralParseError
Source§impl Debug for HpackStringLiteralParseError
impl Debug for HpackStringLiteralParseError
impl Eq for HpackStringLiteralParseError
impl StructuralPartialEq for HpackStringLiteralParseError
Auto Trait Implementations§
impl Freeze for HpackStringLiteralParseError
impl RefUnwindSafe for HpackStringLiteralParseError
impl Send for HpackStringLiteralParseError
impl Sync for HpackStringLiteralParseError
impl Unpin for HpackStringLiteralParseError
impl UnsafeUnpin for HpackStringLiteralParseError
impl UnwindSafe for HpackStringLiteralParseError
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