Struct httpbis::solicit::frame::goaway::GoawayFrame
[−]
[src]
pub struct GoawayFrame { /* fields omitted */ }
The struct represents the GOAWAY
HTTP/2 frame.
Methods
impl GoawayFrame
[src]
fn new(last_stream_id: StreamId, error_code: ErrorCode) -> Self
Create a new GOAWAY
frame with the given error code and no debug data.
fn with_debug_data(
last_stream_id: StreamId,
raw_error: u32,
debug_data: Bytes
) -> Self
last_stream_id: StreamId,
raw_error: u32,
debug_data: Bytes
) -> Self
Create a new GOAWAY
frame with the given parts.
fn error_code(&self) -> ErrorCode
Returns the interpreted error code of the frame. Any unknown error codes are mapped into
the InternalError
variant of the enum.
fn raw_error_code(&self) -> u32
Returns the original raw error code of the frame. If the code is unknown, it will not be changed.
fn last_stream_id(&self) -> StreamId
Returns the associated last stream ID.
fn debug_data(&self) -> Option<&Bytes>
Returns the debug data associated with the frame.
fn payload_len(&self) -> u32
Returns the total length of the frame's payload, including any debug data.
Trait Implementations
impl Clone for GoawayFrame
[src]
fn clone(&self) -> GoawayFrame
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for GoawayFrame
[src]
impl PartialEq for GoawayFrame
[src]
fn eq(&self, __arg_0: &GoawayFrame) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GoawayFrame) -> bool
This method tests for !=
.
impl Frame for GoawayFrame
[src]
type FlagType = NoFlag
The type that represents the flags that the particular Frame
can take. This makes sure that only valid Flag
s are used with each Frame
. Read more
fn from_raw(raw_frame: &RawFrame) -> Option<Self>
Creates a new Frame
from the given RawFrame
(i.e. header and payload), if possible. Read more
fn is_set(&self, _: NoFlag) -> bool
Tests if the given flag is set for the frame.
fn get_stream_id(&self) -> StreamId
Returns the StreamId
of the stream to which the frame is associated
fn get_header(&self) -> FrameHeader
Returns a FrameHeader
based on the current state of the Frame
.
impl FrameIR for GoawayFrame
[src]
fn serialize_into<B: FrameBuilder>(self, builder: &mut B) -> Result<()>
Write out the on-the-wire representation of the frame into the given FrameBuilder
.
fn serialize_into_vec(self) -> Vec<u8> where
Self: Sized,
Self: Sized,