pub struct Http2GoawayBuilder<'a, 'b> { /* private fields */ }Expand description
Builds a typed HTTP/2 GOAWAY frame in caller-owned storage.
Implementations§
Source§impl<'a, 'b> Http2GoawayBuilder<'a, 'b>
impl<'a, 'b> Http2GoawayBuilder<'a, 'b>
Sourcepub fn new(
buffer: &'a mut [u8],
flags: u8,
last_stream_id: Http2StreamId,
error_code: Http2ErrorCode,
additional_debug_data: &'b [u8],
) -> Self
pub fn new( buffer: &'a mut [u8], flags: u8, last_stream_id: Http2StreamId, error_code: Http2ErrorCode, additional_debug_data: &'b [u8], ) -> Self
Creates a builder that copies the fixed prefix and opaque debug data.
Sourcepub fn build(self) -> Result<Http2Goaway<'a>, Http2BuildError>
pub fn build(self) -> Result<Http2Goaway<'a>, Http2BuildError>
Builds the frame after validating its payload and caller buffer.
Sourcepub fn build_with_maximum(
self,
maximum_payload: usize,
) -> Result<Http2Goaway<'a>, Http2BuildError>
pub fn build_with_maximum( self, maximum_payload: usize, ) -> Result<Http2Goaway<'a>, Http2BuildError>
Builds the frame after validating the caller-provided payload maximum and capacity.
Auto Trait Implementations§
impl<'a, 'b> !UnwindSafe for Http2GoawayBuilder<'a, 'b>
impl<'a, 'b> Freeze for Http2GoawayBuilder<'a, 'b>
impl<'a, 'b> RefUnwindSafe for Http2GoawayBuilder<'a, 'b>
impl<'a, 'b> Send for Http2GoawayBuilder<'a, 'b>
impl<'a, 'b> Sync for Http2GoawayBuilder<'a, 'b>
impl<'a, 'b> Unpin for Http2GoawayBuilder<'a, 'b>
impl<'a, 'b> UnsafeUnpin for Http2GoawayBuilder<'a, 'b>
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