pub struct Code { /* private fields */ }
Expand description

An HTTP/3 “application error code”.

Implementations

No error. This is used when the connection or stream needs to be closed, but there is no error to signal.

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.

An internal error has occurred in the HTTP stack.

The endpoint detected that its peer created a stream that it will not accept.

A stream required by the HTTP/3 connection was closed or reset.

A frame was received that was not permitted in the current state or on the current stream.

A frame that fails to satisfy layout requirements or with an invalid size was received.

The endpoint detected that its peer is exhibiting a behavior that might be generating excessive load.

A Stream ID or Push ID was used incorrectly, such as exceeding a limit, reducing a limit, or being reused.

An endpoint detected an error in the payload of a SETTINGS frame.

No SETTINGS frame was received at the beginning of the control stream.

A server rejected a request without performing any application processing.

The request or its response (including pushed response) is cancelled.

The client’s stream terminated without containing a fully-formed request.

An HTTP message was malformed and cannot be processed.

The TCP connection established in response to a CONNECT request was reset or abnormally closed.

The requested operation cannot be served over HTTP/3. The peer should retry over HTTP/1.1.

The decoder failed to interpret an encoded field section and is not able to continue decoding that field section.

The decoder failed to interpret an encoder instruction received on the encoder stream.

The encoder failed to interpret a decoder instruction received on the decoder stream.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more