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 Copy for Error
[src]
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 Debug 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 !=
.