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