pub struct QpackFieldSectionPrefixBuilder<'a> { /* private fields */ }Expand description
Builds a canonical QPACK encoded field-section prefix in caller-owned storage.
Implementations§
Source§impl<'a> QpackFieldSectionPrefixBuilder<'a>
impl<'a> QpackFieldSectionPrefixBuilder<'a>
Sourcepub fn new(
destination: &'a mut [u8],
encoded_required_insert_count: u64,
negative: bool,
delta_base: u64,
) -> Self
pub fn new( destination: &'a mut [u8], encoded_required_insert_count: u64, negative: bool, delta_base: u64, ) -> Self
Creates a builder from raw encoded Required Insert Count and Delta Base values.
Sourcepub fn build(
self,
) -> Result<QpackFieldSectionPrefix<'a>, QpackFieldSectionPrefixBuildError>
pub fn build( self, ) -> Result<QpackFieldSectionPrefix<'a>, QpackFieldSectionPrefixBuildError>
Validates all inputs and capacity before atomically writing a canonical prefix.
Auto Trait Implementations§
impl<'a> !UnwindSafe for QpackFieldSectionPrefixBuilder<'a>
impl<'a> Freeze for QpackFieldSectionPrefixBuilder<'a>
impl<'a> RefUnwindSafe for QpackFieldSectionPrefixBuilder<'a>
impl<'a> Send for QpackFieldSectionPrefixBuilder<'a>
impl<'a> Sync for QpackFieldSectionPrefixBuilder<'a>
impl<'a> Unpin for QpackFieldSectionPrefixBuilder<'a>
impl<'a> UnsafeUnpin for QpackFieldSectionPrefixBuilder<'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