pub struct Http3HeadersBuilder<'output, 'section> { /* private fields */ }Expand description
Builds a typed HTTP/3 HEADERS frame in caller-owned storage.
Implementations§
Source§impl<'output, 'section> Http3HeadersBuilder<'output, 'section>
impl<'output, 'section> Http3HeadersBuilder<'output, 'section>
Sourcepub fn new(
destination: &'output mut [u8],
encoded_field_section: &'section [u8],
) -> Self
pub fn new( destination: &'output mut [u8], encoded_field_section: &'section [u8], ) -> Self
Creates a HEADERS builder for an opaque QPACK-encoded field section.
Sourcepub fn build(self) -> Result<Http3Headers<'output>, Http3FrameBuildError>
pub fn build(self) -> Result<Http3Headers<'output>, Http3FrameBuildError>
Canonically encodes and atomically writes the HEADERS frame.
Auto Trait Implementations§
impl<'output, 'section> !UnwindSafe for Http3HeadersBuilder<'output, 'section>
impl<'output, 'section> Freeze for Http3HeadersBuilder<'output, 'section>
impl<'output, 'section> RefUnwindSafe for Http3HeadersBuilder<'output, 'section>
impl<'output, 'section> Send for Http3HeadersBuilder<'output, 'section>
impl<'output, 'section> Sync for Http3HeadersBuilder<'output, 'section>
impl<'output, 'section> Unpin for Http3HeadersBuilder<'output, 'section>
impl<'output, 'section> UnsafeUnpin for Http3HeadersBuilder<'output, 'section>
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