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

A full frame header was not passed.

An unsupported value was set for the flag value.

An unsupported value was set for the frame kind.

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

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.

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

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

Trait Implementations

impl Copy for Error
[src]

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

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

This method tests for !=.

impl Eq for Error
[src]

impl Hash for Error
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more