Enum quiche::h3::WireErrorCode

source ·
pub enum WireErrorCode {
Show 17 variants NoError = 256, GeneralProtocolError = 257, InternalError = 258, StreamCreationError = 259, ClosedCriticalStream = 260, FrameUnexpected = 261, FrameError = 262, ExcessiveLoad = 263, IdError = 264, SettingsError = 265, MissingSettings = 266, RequestRejected = 267, RequestCancelled = 268, RequestIncomplete = 269, MessageError = 270, ConnectError = 271, VersionFallback = 272,
}
Expand description

HTTP/3 error codes sent on the wire.

As defined in RFC9114.

Variants§

§

NoError = 256

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

§

GeneralProtocolError = 257

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.

§

InternalError = 258

An internal error has occurred in the HTTP stack.

§

StreamCreationError = 259

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

§

ClosedCriticalStream = 260

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

§

FrameUnexpected = 261

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

§

FrameError = 262

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

§

ExcessiveLoad = 263

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

§

IdError = 264

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

§

SettingsError = 265

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

§

MissingSettings = 266

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

§

RequestRejected = 267

A server rejected a request without performing any application processing.

§

RequestCancelled = 268

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

§

RequestIncomplete = 269

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

§

MessageError = 270

An HTTP message was malformed and cannot be processed.

§

ConnectError = 271

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

§

VersionFallback = 272

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

Trait Implementations§

source§

impl Clone for WireErrorCode

source§

fn clone(&self) -> WireErrorCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for WireErrorCode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for WireErrorCode

source§

fn eq(&self, other: &WireErrorCode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for WireErrorCode

source§

impl Eq for WireErrorCode

source§

impl StructuralPartialEq for WireErrorCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.