pub enum FrameError {
Show 13 variants
BadFrameSize,
MaxFrameSize,
TooMuchPadding,
InvalidSettingValue,
InvalidPayloadLength,
InvalidPayloadAckSettings,
InvalidStreamId,
MalformedMessage,
InvalidDependencyId,
InvalidPreface,
UnexpectedPushPromise,
Continuation(FrameContinuationError),
Hpack(DecoderError),
}
Expand description
Errors that can occur during parsing an HTTP/2 frame.
Variants§
BadFrameSize
A length value other than 8 was set on a PING message.
MaxFrameSize
Frame size exceeded
TooMuchPadding
The padding length was larger than the frame-header-specified length of the payload.
InvalidSettingValue
An invalid setting value was provided
InvalidPayloadLength
The payload length specified by the frame header was not the value necessary for the specific frame type.
InvalidPayloadAckSettings
Received a payload with an ACK settings frame
InvalidStreamId
An invalid stream identifier was provided.
This is returned if a SETTINGS or PING frame is received with a stream identifier other than zero.
MalformedMessage
A request or response is malformed.
InvalidDependencyId
An invalid stream dependency ID was provided
This is returned if a HEADERS or PRIORITY frame is received with an invalid stream identifier.
InvalidPreface
An invalid preface
UnexpectedPushPromise
Unexpected push promise
Continuation(FrameContinuationError)
Continuation related error
Hpack(DecoderError)
Failed to perform HPACK decoding
Trait Implementations§
Source§impl Clone for FrameError
impl Clone for FrameError
Source§fn clone(&self) -> FrameError
fn clone(&self) -> FrameError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more