Skip to main content

WireErrorCode

Enum WireErrorCode 

Source
pub enum WireErrorCode {
Show 18 variants DatagramError = 51, 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.

These are from the IANA registry at https://www.iana.org/assignments/http3-parameters/http3-parameters.xhtml (Section: โ€œHTTP/3 Error Codesโ€)

Most of these are defined in RFC9114.

Variantsยง

ยง

DatagramError = 51

Datagram or Capsule Protocol error per RFC9297

ยง

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) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยง

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

Performs copy-assignment from source. Read more
Sourceยง

impl Copy for WireErrorCode

Sourceยง

impl Debug for WireErrorCode

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl Eq for WireErrorCode

Sourceยง

impl PartialEq for WireErrorCode

Sourceยง

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

Equality operator ==. Read more
1.0.0 (const: unstable) ยท Sourceยง

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

Inequality operator !=. Read more
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
Sourceยง

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

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

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

Sourceยง

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

Checks if this value is equivalent to the given key. Read more
Sourceยง

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

Sourceยง

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,

Sourceยง

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>,

Sourceยง

type Error = !

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Sourceยง

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

Sourceยง

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.