pub struct Code(/* private fields */);Expand description
An HTTP/3 “application error code” (RFC 9114 §8.1).
A newtype rather than an enum: the registry is open, and a peer may close a connection with a code this server has never heard of, which still has to be logged rather than lost.
Implementations§
Source§impl Code
impl Code
Sourcepub const H3_DATAGRAM_ERROR: Code
pub const H3_DATAGRAM_ERROR: Code
A datagram or capsule could not be parsed (RFC 9297 §5.2).
Sourcepub const H3_NO_ERROR: Code
pub const H3_NO_ERROR: Code
No error: a close with nothing to report (RFC 9114 §8.1).
Sourcepub const H3_GENERAL_PROTOCOL_ERROR: Code
pub const H3_GENERAL_PROTOCOL_ERROR: Code
A protocol violation with no more specific code (RFC 9114 §8.1).
Sourcepub const H3_INTERNAL_ERROR: Code
pub const H3_INTERNAL_ERROR: Code
A fault inside this HTTP/3 layer rather than in the peer’s message.
Sourcepub const H3_STREAM_CREATION_ERROR: Code
pub const H3_STREAM_CREATION_ERROR: Code
The peer created a stream this endpoint will not accept (RFC 9114 §6.2).
Sourcepub const H3_CLOSED_CRITICAL_STREAM: Code
pub const H3_CLOSED_CRITICAL_STREAM: Code
A stream the connection depends on was closed or reset (RFC 9114 §6.2.1).
Sourcepub const H3_FRAME_UNEXPECTED: Code
pub const H3_FRAME_UNEXPECTED: Code
A frame arrived where it is not allowed (RFC 9114 §7.2).
Sourcepub const H3_FRAME_ERROR: Code
pub const H3_FRAME_ERROR: Code
A frame’s layout or size is invalid (RFC 9114 §7.1).
Sourcepub const H3_EXCESSIVE_LOAD: Code
pub const H3_EXCESSIVE_LOAD: Code
The peer is behaving in a way that might generate excessive load.
Sourcepub const H3_ID_ERROR: Code
pub const H3_ID_ERROR: Code
A stream or push id was used incorrectly (RFC 9114 §5.2).
Sourcepub const H3_SETTINGS_ERROR: Code
pub const H3_SETTINGS_ERROR: Code
A SETTINGS payload broke one of RFC 9114 §7.2.4’s rules.
Sourcepub const H3_MISSING_SETTINGS: Code
pub const H3_MISSING_SETTINGS: Code
The control stream did not begin with SETTINGS (RFC 9114 §6.2.1).
Sourcepub const H3_REQUEST_REJECTED: Code
pub const H3_REQUEST_REJECTED: Code
The request was rejected without being processed (RFC 9114 §5.2).
Sourcepub const H3_REQUEST_CANCELLED: Code
pub const H3_REQUEST_CANCELLED: Code
The request or its response is cancelled (RFC 9114 §8.1).
Sourcepub const H3_REQUEST_INCOMPLETE: Code
pub const H3_REQUEST_INCOMPLETE: Code
The request stream ended without a fully formed request (RFC 9114 §4.1).
Sourcepub const H3_MESSAGE_ERROR: Code
pub const H3_MESSAGE_ERROR: Code
An HTTP message was malformed (RFC 9114 §4.1.2).
Sourcepub const H3_CONNECT_ERROR: Code
pub const H3_CONNECT_ERROR: Code
The connection made for a CONNECT request failed (RFC 9114 §4.4).
Sourcepub const H3_VERSION_FALLBACK: Code
pub const H3_VERSION_FALLBACK: Code
The request cannot be served over HTTP/3 (RFC 9114 §8.1).
Sourcepub const QPACK_DECOMPRESSION_FAILED: Code
pub const QPACK_DECOMPRESSION_FAILED: Code
An encoded field section could not be decoded (RFC 9204 §6).
Sourcepub const QPACK_ENCODER_STREAM_ERROR: Code
pub const QPACK_ENCODER_STREAM_ERROR: Code
An encoder-stream instruction could not be interpreted (RFC 9204 §6).
Sourcepub const QPACK_DECODER_STREAM_ERROR: Code
pub const QPACK_DECODER_STREAM_ERROR: Code
A decoder-stream instruction could not be interpreted (RFC 9204 §6).