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

Methods

impl RstStreamFrame
[src]

Constructs a new RstStreamFrame with the given ErrorCode.

Constructs a new RstStreamFrame that will use the given raw_error_code for its payload.

Returns the interpreted error code of the frame. Any unknown error codes are mapped into the InternalError variant of the enum.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RstStreamFrame
[src]

Formats the value using the given formatter.

impl PartialEq for RstStreamFrame
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Frame for RstStreamFrame
[src]

The type that represents the flags that the particular Frame can take. This makes sure that only valid Flags are used with each Frame. Read more

Creates a new Frame from the given RawFrame (i.e. header and payload), if possible. Read more

Tests if the given flag is set for the frame.

Returns the StreamId of the stream to which the frame is associated

Returns a FrameHeader based on the current state of the Frame.

impl FrameIR for RstStreamFrame
[src]

Write out the on-the-wire representation of the frame into the given FrameBuilder.