pub struct QpackInteger<'a> { /* private fields */ }Expand description
A validated, exact borrowed QPACK prefixed integer representation.
Implementations§
Source§impl<'a> QpackInteger<'a>
impl<'a> QpackInteger<'a>
Sourcepub fn parse(
bytes: &'a [u8],
prefix_bits: u8,
) -> Result<Self, QpackIntegerParseError>
pub fn parse( bytes: &'a [u8], prefix_bits: u8, ) -> Result<Self, QpackIntegerParseError>
Parses one RFC 9204 section 4.1.1 integer and excludes following bytes.
Sourcepub const fn as_bytes(self) -> &'a [u8]
pub const fn as_bytes(self) -> &'a [u8]
Returns the exact encoded representation, excluding following bytes.
Sourcepub const fn prefix_bits(self) -> u8
pub const fn prefix_bits(self) -> u8
Returns the number of controlled low bits in the first octet.
Trait Implementations§
Source§impl<'a> Clone for QpackInteger<'a>
impl<'a> Clone for QpackInteger<'a>
impl<'a> Copy for QpackInteger<'a>
Source§impl<'a> Debug for QpackInteger<'a>
impl<'a> Debug for QpackInteger<'a>
impl<'a> Eq for QpackInteger<'a>
Source§impl<'a> PartialEq for QpackInteger<'a>
impl<'a> PartialEq for QpackInteger<'a>
impl<'a> StructuralPartialEq for QpackInteger<'a>
Auto Trait Implementations§
impl<'a> Freeze for QpackInteger<'a>
impl<'a> RefUnwindSafe for QpackInteger<'a>
impl<'a> Send for QpackInteger<'a>
impl<'a> Sync for QpackInteger<'a>
impl<'a> Unpin for QpackInteger<'a>
impl<'a> UnsafeUnpin for QpackInteger<'a>
impl<'a> UnwindSafe for QpackInteger<'a>
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