pub enum Http3ControlStreamError {
MissingSettings {
actual: Http3FrameType,
},
UnexpectedFrame {
frame_type: Http3FrameType,
},
FramePayload {
frame_type: Http3FrameType,
error: Http3FramePayloadParseError,
},
Settings(Http3SettingsSemanticError),
InvalidGoawayStreamId {
identifier: u64,
},
IncreasedGoawayIdentifier {
previous: u64,
current: u64,
},
ReducedMaximumPushId {
previous: Http3PushId,
current: Http3PushId,
},
}Expand description
Failure to sequence a received frame on an HTTP/3 control stream.
Variants§
MissingSettings
The first control-stream frame was not SETTINGS.
Fields
§
actual: Http3FrameTypeActual first frame type.
UnexpectedFrame
A frame is forbidden in its current control-stream position or endpoint role.
Fields
§
frame_type: Http3FrameTypeForbidden frame type.
FramePayload
A known control-stream frame has a malformed intrinsic payload.
Fields
§
frame_type: Http3FrameTypeType of the frame with the malformed payload.
§
error: Http3FramePayloadParseErrorIntrinsic payload parsing failure.
Settings(Http3SettingsSemanticError)
SETTINGS failed strict semantic validation.
InvalidGoawayStreamId
A client received GOAWAY with a non-client-bidirectional stream identifier.
IncreasedGoawayIdentifier
A later GOAWAY identifier increased.
Fields
ReducedMaximumPushId
A later MAX_PUSH_ID decreased.
Fields
§
previous: Http3PushIdPreviously accepted maximum Push ID.
§
current: Http3PushIdLater, invalid smaller maximum Push ID.
Implementations§
Source§impl Http3ControlStreamError
impl Http3ControlStreamError
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 Http3ControlStreamError
impl Clone for Http3ControlStreamError
impl Copy for Http3ControlStreamError
Source§impl Debug for Http3ControlStreamError
impl Debug for Http3ControlStreamError
Source§impl Display for Http3ControlStreamError
impl Display for Http3ControlStreamError
impl Eq for Http3ControlStreamError
Source§impl Error for Http3ControlStreamError
impl Error for Http3ControlStreamError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for Http3ControlStreamError
impl PartialEq for Http3ControlStreamError
impl StructuralPartialEq for Http3ControlStreamError
Auto Trait Implementations§
impl Freeze for Http3ControlStreamError
impl RefUnwindSafe for Http3ControlStreamError
impl Send for Http3ControlStreamError
impl Sync for Http3ControlStreamError
impl Unpin for Http3ControlStreamError
impl UnsafeUnpin for Http3ControlStreamError
impl UnwindSafe for Http3ControlStreamError
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
Mutably borrows from an owned value. Read more