pub enum QpackIntegerBuildError {
InvalidPrefixBits {
prefix_bits: u8,
},
HighBitsOverlap {
high_bits: u8,
prefix_bits: u8,
},
ValueTooLarge {
value: u64,
},
BufferTooShort {
required: usize,
available: usize,
},
}Expand description
Failure to build a QPACK prefixed integer.
Variants§
InvalidPrefixBits
The prefix width is outside the inclusive range 1 through 8.
HighBitsOverlap
Supplied high bits overlap the integer-controlled low prefix bits.
ValueTooLarge
The value exceeds QPACK’s 62-bit required decoding limit.
Fields
§
value: u64Supplied value above QPACK_INTEGER_MAX.
BufferTooShort
The caller buffer cannot contain the complete integer representation.
Trait Implementations§
Source§impl Clone for QpackIntegerBuildError
impl Clone for QpackIntegerBuildError
impl Copy for QpackIntegerBuildError
Source§impl Debug for QpackIntegerBuildError
impl Debug for QpackIntegerBuildError
Source§impl Display for QpackIntegerBuildError
impl Display for QpackIntegerBuildError
impl Eq for QpackIntegerBuildError
Source§impl PartialEq for QpackIntegerBuildError
impl PartialEq for QpackIntegerBuildError
impl StructuralPartialEq for QpackIntegerBuildError
Auto Trait Implementations§
impl Freeze for QpackIntegerBuildError
impl RefUnwindSafe for QpackIntegerBuildError
impl Send for QpackIntegerBuildError
impl Sync for QpackIntegerBuildError
impl Unpin for QpackIntegerBuildError
impl UnsafeUnpin for QpackIntegerBuildError
impl UnwindSafe for QpackIntegerBuildError
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