pub struct Code { /* private fields */ }
Expand description
An HTTP/3 “application error code”.
Implementations§
Source§impl Code
impl Code
Sourcepub const fn value(&self) -> u64
pub const fn value(&self) -> u64
Numerical error code
See https://www.rfc-editor.org/rfc/rfc9114.html#errors and https://www.rfc-editor.org/rfc/rfc9000.html#error-codes
Source§impl Code
impl Code
Sourcepub const H3_DATAGRAM_ERROR: Code
pub const H3_DATAGRAM_ERROR: Code
Datagram or capsule parse error See: https://www.rfc-editor.org/rfc/rfc9297#section-5.2
Sourcepub const H3_NO_ERROR: Code
pub const H3_NO_ERROR: Code
No error. This is used when the connection or stream needs to be closed, but there is no error to signal.
Sourcepub const H3_GENERAL_PROTOCOL_ERROR: Code
pub const H3_GENERAL_PROTOCOL_ERROR: Code
Peer violated protocol requirements in a way that does not match a more specific error code, or endpoint declines to use the more specific error code.
Sourcepub const H3_INTERNAL_ERROR: Code
pub const H3_INTERNAL_ERROR: Code
An internal error has occurred in the HTTP stack.
Sourcepub const H3_STREAM_CREATION_ERROR: Code
pub const H3_STREAM_CREATION_ERROR: Code
The endpoint detected that its peer created a stream that it will not accept.
Sourcepub const H3_CLOSED_CRITICAL_STREAM: Code
pub const H3_CLOSED_CRITICAL_STREAM: Code
A stream required by the HTTP/3 connection was closed or reset.
Sourcepub const H3_FRAME_UNEXPECTED: Code
pub const H3_FRAME_UNEXPECTED: Code
A frame was received that was not permitted in the current state or on the current stream.
Sourcepub const H3_FRAME_ERROR: Code
pub const H3_FRAME_ERROR: Code
A frame that fails to satisfy layout requirements or with an invalid size was received.
Sourcepub const H3_EXCESSIVE_LOAD: Code
pub const H3_EXCESSIVE_LOAD: Code
The endpoint detected that its peer is exhibiting a behavior that might be generating excessive load.
Sourcepub const H3_ID_ERROR: Code
pub const H3_ID_ERROR: Code
A Stream ID or Push ID was used incorrectly, such as exceeding a limit, reducing a limit, or being reused.
Sourcepub const H3_SETTINGS_ERROR: Code
pub const H3_SETTINGS_ERROR: Code
An endpoint detected an error in the payload of a SETTINGS frame.
Sourcepub const H3_MISSING_SETTINGS: Code
pub const H3_MISSING_SETTINGS: Code
No SETTINGS frame was received at the beginning of the control stream.
Sourcepub const H3_REQUEST_REJECTED: Code
pub const H3_REQUEST_REJECTED: Code
A server rejected a request without performing any application processing.
Sourcepub const H3_REQUEST_CANCELLED: Code
pub const H3_REQUEST_CANCELLED: Code
The request or its response (including pushed response) is cancelled.
Sourcepub const H3_REQUEST_INCOMPLETE: Code
pub const H3_REQUEST_INCOMPLETE: Code
The client’s stream terminated without containing a fully-formed request.
Sourcepub const H3_MESSAGE_ERROR: Code
pub const H3_MESSAGE_ERROR: Code
An HTTP message was malformed and cannot be processed.
Sourcepub const H3_CONNECT_ERROR: Code
pub const H3_CONNECT_ERROR: Code
The TCP connection established in response to a CONNECT request was reset or abnormally closed.
Sourcepub const H3_VERSION_FALLBACK: Code
pub const H3_VERSION_FALLBACK: Code
The requested operation cannot be served over HTTP/3. The peer should retry over HTTP/1.1.
Sourcepub const QPACK_DECOMPRESSION_FAILED: Code
pub const QPACK_DECOMPRESSION_FAILED: Code
The decoder failed to interpret an encoded field section and is not able to continue decoding that field section.
Sourcepub const QPACK_ENCODER_STREAM_ERROR: Code
pub const QPACK_ENCODER_STREAM_ERROR: Code
The decoder failed to interpret an encoder instruction received on the encoder stream.
Sourcepub const QPACK_DECODER_STREAM_ERROR: Code
pub const QPACK_DECODER_STREAM_ERROR: Code
The encoder failed to interpret a decoder instruction received on the decoder stream.