Struct httpbis::solicit::frame::goaway::GoawayFrame [] [src]

pub struct GoawayFrame { /* fields omitted */ }

The struct represents the GOAWAY HTTP/2 frame.

Methods

impl GoawayFrame
[src]

Create a new GOAWAY frame with the given error code and no debug data.

Create a new GOAWAY frame with the given parts.

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.

Returns the associated last stream ID.

Returns the debug data associated with the frame.

Returns the total length of the frame's payload, including any debug data.

Trait Implementations

impl Clone for GoawayFrame
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GoawayFrame
[src]

Formats the value using the given formatter.

impl PartialEq for GoawayFrame
[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 GoawayFrame
[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 GoawayFrame
[src]

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