[][src]Struct solicit::http::frame::rst_stream::RstStreamFrame

pub struct RstStreamFrame { /* fields omitted */ }

The struct represents the RST_STREAM HTTP/2 frame.

Implementations

impl RstStreamFrame[src]

pub fn new(stream_id: StreamId, error_code: ErrorCode) -> RstStreamFrame[src]

Constructs a new RstStreamFrame with the given ErrorCode.

pub fn with_raw_error_code(
    stream_id: StreamId,
    raw_error_code: u32
) -> RstStreamFrame
[src]

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

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.

Trait Implementations

impl Clone for RstStreamFrame[src]

impl Debug for RstStreamFrame[src]

impl<'a> Frame<'a> for RstStreamFrame[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 FrameIR for RstStreamFrame[src]

impl PartialEq<RstStreamFrame> for RstStreamFrame[src]

impl StructuralPartialEq for RstStreamFrame[src]

Auto Trait Implementations

impl RefUnwindSafe for RstStreamFrame

impl Send for RstStreamFrame

impl Sync for RstStreamFrame

impl Unpin for RstStreamFrame

impl UnwindSafe for RstStreamFrame

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.