pub enum QpackIntegerParseError {
InvalidPrefixBits {
prefix_bits: u8,
},
Incomplete {
required: usize,
available: usize,
},
Overflow,
ValueTooLarge {
value: u64,
},
}Expand description
Failure to parse a QPACK prefixed integer.
Variants§
InvalidPrefixBits
The prefix width is outside the inclusive range 1 through 8.
Incomplete
The input ended before the first octet or a terminating continuation octet.
Fields
Overflow
The encoded number cannot be represented as a u64.
ValueTooLarge
The decoded number exceeds QPACK’s 62-bit required decoding limit.
Fields
§
value: u64Decoded value above QPACK_INTEGER_MAX.
Trait Implementations§
Source§impl Clone for QpackIntegerParseError
impl Clone for QpackIntegerParseError
impl Copy for QpackIntegerParseError
Source§impl Debug for QpackIntegerParseError
impl Debug for QpackIntegerParseError
Source§impl Display for QpackIntegerParseError
impl Display for QpackIntegerParseError
impl Eq for QpackIntegerParseError
Source§impl PartialEq for QpackIntegerParseError
impl PartialEq for QpackIntegerParseError
impl StructuralPartialEq for QpackIntegerParseError
Auto Trait Implementations§
impl Freeze for QpackIntegerParseError
impl RefUnwindSafe for QpackIntegerParseError
impl Send for QpackIntegerParseError
impl Sync for QpackIntegerParseError
impl Unpin for QpackIntegerParseError
impl UnsafeUnpin for QpackIntegerParseError
impl UnwindSafe for QpackIntegerParseError
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