pub struct QpackFieldSectionPrefix<'a> { /* private fields */ }Expand description
A validated, exact borrowed QPACK encoded field-section prefix.
Implementations§
Source§impl<'a> QpackFieldSectionPrefix<'a>
impl<'a> QpackFieldSectionPrefix<'a>
Sourcepub fn parse(bytes: &'a [u8]) -> Result<Self, QpackFieldSectionPrefixParseError>
pub fn parse(bytes: &'a [u8]) -> Result<Self, QpackFieldSectionPrefixParseError>
Parses one RFC 9204 section 4.5.1 prefix and excludes following field-line bytes.
Sourcepub const fn as_bytes(self) -> &'a [u8]
pub const fn as_bytes(self) -> &'a [u8]
Returns the complete exact prefix bytes, excluding following field-line bytes.
Sourcepub const fn encoded_required_insert_count(self) -> QpackInteger<'a>
pub const fn encoded_required_insert_count(self) -> QpackInteger<'a>
Returns the exact encoded Required Insert Count integer.
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns whether the Delta Base sign bit is set.
Sourcepub const fn delta_base(self) -> QpackInteger<'a>
pub const fn delta_base(self) -> QpackInteger<'a>
Returns the exact Delta Base integer.
Trait Implementations§
Source§impl<'a> Clone for QpackFieldSectionPrefix<'a>
impl<'a> Clone for QpackFieldSectionPrefix<'a>
impl<'a> Copy for QpackFieldSectionPrefix<'a>
Source§impl<'a> Debug for QpackFieldSectionPrefix<'a>
impl<'a> Debug for QpackFieldSectionPrefix<'a>
impl<'a> Eq for QpackFieldSectionPrefix<'a>
Source§impl<'a> PartialEq for QpackFieldSectionPrefix<'a>
impl<'a> PartialEq for QpackFieldSectionPrefix<'a>
impl<'a> StructuralPartialEq for QpackFieldSectionPrefix<'a>
Auto Trait Implementations§
impl<'a> Freeze for QpackFieldSectionPrefix<'a>
impl<'a> RefUnwindSafe for QpackFieldSectionPrefix<'a>
impl<'a> Send for QpackFieldSectionPrefix<'a>
impl<'a> Sync for QpackFieldSectionPrefix<'a>
impl<'a> Unpin for QpackFieldSectionPrefix<'a>
impl<'a> UnsafeUnpin for QpackFieldSectionPrefix<'a>
impl<'a> UnwindSafe for QpackFieldSectionPrefix<'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