pub enum Error {
Show 20 variants Done, BufferTooShort, InternalError, ExcessiveLoad, IdError, StreamCreationError, ClosedCriticalStream, MissingSettings, FrameUnexpected, FrameError, QpackDecompressionFailed, TransportError(Error), StreamBlocked, SettingsError, RequestRejected, RequestCancelled, RequestIncomplete, MessageError, ConnectError, VersionFallback,
}
Expand description

An HTTP/3 error.

Variants

Done

There is no error or no work to do

BufferTooShort

The provided buffer is too short.

InternalError

Internal error in the HTTP/3 stack.

ExcessiveLoad

Endpoint detected that the peer is exhibiting behavior that causes. excessive load.

IdError

Stream ID or Push ID greater that current maximum was used incorrectly, such as exceeding a limit, reducing a limit, or being reused.

StreamCreationError

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

ClosedCriticalStream

A required critical stream was closed.

MissingSettings

No SETTINGS frame at beginning of control stream.

FrameUnexpected

A frame was received which is not permitted in the current state.

FrameError

Frame violated layout or size rules.

QpackDecompressionFailed

QPACK Header block decompression failure.

TransportError(Error)

Error originated from the transport layer.

StreamBlocked

The underlying QUIC stream (or connection) doesn’t have enough capacity for the operation to complete. The application should retry later on.

SettingsError

Error in the payload of a SETTINGS frame.

RequestRejected

Server rejected request.

RequestCancelled

Request or its response cancelled.

RequestIncomplete

Client’s request stream terminated without containing a full-formed request.

MessageError

An HTTP message was malformed and cannot be processed.

ConnectError

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

VersionFallback

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

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

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Converts to this type from the input type.

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. 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.