pub enum Http3MessageStreamError {
UnexpectedFrame {
frame_type: Http3FrameType,
position: Http3MessagePosition,
},
FramePayload {
frame_type: Http3FrameType,
error: Http3FramePayloadParseError,
},
InvalidHeaderSection {
stream_kind: Http3MessageStreamKind,
position: Http3MessagePosition,
section_kind: Http3HeadersKind,
},
IncompleteMessage {
stream_kind: Http3MessageStreamKind,
position: Http3MessagePosition,
},
}Expand description
Failure to sequence a received frame on an HTTP/3 message stream.
Variants§
UnexpectedFrame
A frame is forbidden in the current message position or stream kind.
Fields
frame_type: Http3FrameTypeForbidden frame type.
position: Http3MessagePositionMessage position at which the frame was received.
FramePayload
An allowed known frame has a malformed intrinsic payload.
Fields
frame_type: Http3FrameTypeType of the frame with the malformed payload.
error: Http3FramePayloadParseErrorIntrinsic payload parsing failure.
InvalidHeaderSection
A QPACK-decoded header section is invalid for the current message position.
Fields
stream_kind: Http3MessageStreamKindIncoming message stream kind.
position: Http3MessagePositionMessage position at which HEADERS was received.
section_kind: Http3HeadersKindValidated QPACK-decoded header-section role.
IncompleteMessage
The stream ended before its initial or final response header section was accepted.
Fields
stream_kind: Http3MessageStreamKindIncoming message stream kind.
position: Http3MessagePositionMessage position at stream end.
Implementations§
Source§impl Http3MessageStreamError
impl Http3MessageStreamError
Sourcepub const fn error_code(self) -> Http3ErrorCode
pub const fn error_code(self) -> Http3ErrorCode
Returns the HTTP/3 application error code required by this failure.
Trait Implementations§
Source§impl Clone for Http3MessageStreamError
impl Clone for Http3MessageStreamError
impl Copy for Http3MessageStreamError
Source§impl Debug for Http3MessageStreamError
impl Debug for Http3MessageStreamError
Source§impl Display for Http3MessageStreamError
impl Display for Http3MessageStreamError
impl Eq for Http3MessageStreamError
Source§impl Error for Http3MessageStreamError
impl Error for Http3MessageStreamError
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
use the Display impl or to_string()