Enum webparse::http::http2::Http2Error

source ·
pub enum Http2Error {
Show 16 variants Decoder(DecoderError), Huffman(HuffmanDecoderError), Short, BadFlag(u8), BadKind(u8), TooMuchPadding(u8), PayloadLengthTooShort, PartialSettingLength, InvalidPayloadLength, InvalidStreamId, InvalidSettingValue, BadFrameSize, InvalidWindowUpdateValue, InvalidDependencyId, MalformedMessage, InvalidRequesetUrl,
}

Variants§

§

Decoder(DecoderError)

§

Huffman(HuffmanDecoderError)

§

Short

A full frame header was not passed.

§

BadFlag(u8)

An unsupported value was set for the flag value.

§

BadKind(u8)

An unsupported value was set for the frame kind.

§

TooMuchPadding(u8)

The padding length was larger than the frame-header-specified length of the payload.

§

PayloadLengthTooShort

The payload length specified by the frame header was shorter than necessary for the parser settings specified and the frame type.

This happens if, for instance, the priority flag is set and the header length is shorter than a stream dependency.

PayloadLengthTooShort should be treated as a protocol error.

§

PartialSettingLength

The payload length specified by the frame header of a settings frame was not a round multiple of the size of a single setting.

§

InvalidPayloadLength

The payload length specified by the frame header was not the value necessary for the specific frame type.

§

InvalidStreamId

无效的streamId, 比如setting只能以0的id来传送

§

InvalidSettingValue

无效的设置值, 比如enable_push只能取0和1

§

BadFrameSize

无效的frame大小

§

InvalidWindowUpdateValue

无效的窗口大小文件

§

InvalidDependencyId

无效的依赖StreamId

§

MalformedMessage

无效的报文信息

§

InvalidRequesetUrl

请求的头信息不全

Implementations§

source§

impl Http2Error

source

pub fn description_str(&self) -> &'static str

source

pub fn into<E: Into<Http2Error>>(e: E) -> WebError

Trait Implementations§

source§

impl Debug for Http2Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Http2Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<DecoderError> for Http2Error

source§

fn from(e: DecoderError) -> Self

Converts to this type from the input type.
source§

impl From<HuffmanDecoderError> for Http2Error

source§

fn from(e: HuffmanDecoderError) -> Self

Converts to this type from the input type.
source§

impl Into<WebError> for Http2Error

source§

fn into(self) -> WebError

Converts this type into the (usually inferred) input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.