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
sourceimpl Clone for FrameError
impl Clone for FrameError
sourcefn clone(&self) -> FrameError
fn clone(&self) -> FrameError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FrameError
impl Debug for FrameError
sourceimpl Display for FrameError
impl Display for FrameError
sourceimpl Error for FrameError
impl Error for FrameError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DecoderError> for FrameError
impl From<DecoderError> for FrameError
sourcefn from(source: DecoderError) -> Self
fn from(source: DecoderError) -> Self
Converts to this type from the input type.
sourceimpl From<FrameContinuationError> for FrameError
impl From<FrameContinuationError> for FrameError
sourcefn from(source: FrameContinuationError) -> Self
fn from(source: FrameContinuationError) -> Self
Converts to this type from the input type.
sourceimpl From<FrameError> for ClientError
impl From<FrameError> for ClientError
sourcefn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
Converts to this type from the input type.
sourceimpl From<FrameError> for ConnectionError
impl From<FrameError> for ConnectionError
sourcefn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
Converts to this type from the input type.
sourceimpl<E> From<FrameError> for ServerError<E>
impl<E> From<FrameError> for ServerError<E>
sourcefn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<FrameError> for FrameError
impl PartialEq<FrameError> for FrameError
sourcefn eq(&self, other: &FrameError) -> bool
fn eq(&self, other: &FrameError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FrameError) -> bool
fn ne(&self, other: &FrameError) -> bool
This method tests for !=.
impl Copy for FrameError
impl Eq for FrameError
impl StructuralEq for FrameError
impl StructuralPartialEq for FrameError
Auto Trait Implementations
impl RefUnwindSafe for FrameError
impl Send for FrameError
impl Sync for FrameError
impl Unpin for FrameError
impl UnwindSafe for FrameError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more