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

pub struct GoawayFrame<'a> { /* fields omitted */ }

The struct represents the GOAWAY HTTP/2 frame.

Implementations

impl<'a> GoawayFrame<'a>[src]

pub fn new(last_stream_id: StreamId, error_code: ErrorCode) -> Self[src]

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

pub fn with_debug_data(
    last_stream_id: StreamId,
    raw_error: u32,
    debug_data: &'a [u8]
) -> Self
[src]

Create a new GOAWAY frame with the given parts.

pub fn error_code(&self) -> ErrorCode[src]

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

pub fn raw_error_code(&self) -> u32[src]

Returns the original raw error code of the frame. If the code is unknown, it will not be changed.

pub fn last_stream_id(&self) -> StreamId[src]

Returns the associated last stream ID.

pub fn debug_data(&self) -> Option<&[u8]>[src]

Returns the debug data associated with the frame.

pub fn payload_len(&self) -> u32[src]

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

Trait Implementations

impl<'a> Clone for GoawayFrame<'a>[src]

impl<'a> Debug for GoawayFrame<'a>[src]

impl<'a> Frame<'a> for GoawayFrame<'a>[src]

type FlagType = NoFlag

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

impl<'a> FrameIR for GoawayFrame<'a>[src]

impl<'a> PartialEq<GoawayFrame<'a>> for GoawayFrame<'a>[src]

impl<'a> StructuralPartialEq for GoawayFrame<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for GoawayFrame<'a>

impl<'a> Send for GoawayFrame<'a>

impl<'a> Sync for GoawayFrame<'a>

impl<'a> Unpin for GoawayFrame<'a>

impl<'a> UnwindSafe for GoawayFrame<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.