Struct httpbis::solicit::frame::rst_stream::RstStreamFrame
[−]
[src]
pub struct RstStreamFrame { pub stream_id: StreamId, // some fields omitted }
The struct represents the RST_STREAM
HTTP/2 frame.
Fields
stream_id: StreamId
Methods
impl RstStreamFrame
[src]
fn new(stream_id: StreamId, error_code: ErrorCode) -> RstStreamFrame
Constructs a new RstStreamFrame
with the given ErrorCode
.
fn with_raw_error_code(
stream_id: StreamId,
raw_error_code: u32
) -> RstStreamFrame
stream_id: StreamId,
raw_error_code: u32
) -> RstStreamFrame
Constructs a new RstStreamFrame
that will use the given raw_error_code
for its payload.
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.
Trait Implementations
impl Clone for RstStreamFrame
[src]
fn clone(&self) -> RstStreamFrame
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 RstStreamFrame
[src]
impl PartialEq for RstStreamFrame
[src]
fn eq(&self, __arg_0: &RstStreamFrame) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RstStreamFrame) -> bool
This method tests for !=
.
impl Frame for RstStreamFrame
[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 RstStreamFrame
[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,