Enum http2parse::Error [] [src]

pub enum Error {
    Short,
    BadFlag(u8),
    BadKind(u8),
    TooMuchPadding(u8),
    PayloadLengthTooShort,
    PartialSettingLength,
    InvalidPayloadLength,
}

Errors that can occur during parsing an HTTP/2 frame.

Variants

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.

Trait Implementations

impl Hash for Error
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Eq for Error
[src]

impl PartialEq for Error
[src]

fn eq(&self, __arg_0: &Error) -> bool

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

fn ne(&self, __arg_0: &Error) -> bool

This method tests for !=.

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Error
[src]

fn clone(&self) -> Error

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Error
[src]