Enum ntex_h2::frame::FrameError
source · 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 moresource§impl Debug for FrameError
impl Debug for FrameError
source§impl Display for FrameError
impl Display for FrameError
source§impl Error for FrameError
impl Error for FrameError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<DecoderError> for FrameError
impl From<DecoderError> for FrameError
source§fn from(source: DecoderError) -> Self
fn from(source: DecoderError) -> Self
source§impl From<FrameContinuationError> for FrameError
impl From<FrameContinuationError> for FrameError
source§fn from(source: FrameContinuationError) -> Self
fn from(source: FrameContinuationError) -> Self
source§impl From<FrameError> for ClientError
impl From<FrameError> for ClientError
source§fn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
source§impl From<FrameError> for ConnectionError
impl From<FrameError> for ConnectionError
source§fn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
source§impl<E> From<FrameError> for ServerError<E>
impl<E> From<FrameError> for ServerError<E>
source§fn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
source§impl PartialEq for FrameError
impl PartialEq for FrameError
source§fn eq(&self, other: &FrameError) -> bool
fn eq(&self, other: &FrameError) -> bool
self
and other
values to be equal, and is used
by ==
.