pub enum Error {
BadFrameSize,
TooMuchPadding,
InvalidSettingValue,
InvalidWindowUpdateValue,
InvalidPayloadLength,
InvalidPayloadAckSettings,
InvalidStreamId,
MalformedMessage,
InvalidDependencyId,
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.
TooMuchPadding
The padding length was larger than the frame-header-specified length of the payload.
InvalidSettingValue
An invalid setting value was provided
InvalidWindowUpdateValue
An invalid window update value
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.
Hpack(DecoderError)
Failed to perform HPACK decoding
Trait Implementations§
source§impl From<DecoderError> for Error
impl From<DecoderError> for Error
source§fn from(src: DecoderError) -> Self
fn from(src: DecoderError) -> Self
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.