Enum WireErrorCode

Source
pub enum WireErrorCode {
Show 17 variants NoError = 0, InternalError = 1, ConnectionRefused = 2, FlowControlError = 3, StreamLimitError = 4, StreamStateError = 5, FinalSizeError = 6, FrameEncodingError = 7, TransportParameterError = 8, ConnectionIdLimitError = 9, ProtocolViolation = 10, InvalidToken = 11, ApplicationError = 12, CryptoBufferExceeded = 13, KeyUpdateError = 14, AeadLimitReached = 15, NoViablePath = 16,
}
Expand description

QUIC error codes sent on the wire.

As defined in RFC9000.

Variantsยง

ยง

NoError = 0

An endpoint uses this with CONNECTION_CLOSE to signal that the connection is being closed abruptly in the absence of any error.

ยง

InternalError = 1

The endpoint encountered an internal error and cannot continue with the connection.

ยง

ConnectionRefused = 2

The server refused to accept a new connection.

ยง

FlowControlError = 3

An endpoint received more data than it permitted in its advertised data limits; see Section 4.

ยง

StreamLimitError = 4

An endpoint received a frame for a stream identifier that exceeded its advertised stream limit for the corresponding stream type.

ยง

StreamStateError = 5

An endpoint received a frame for a stream that was not in a state that permitted that frame.

ยง

FinalSizeError = 6

(1) An endpoint received a STREAM frame containing data that exceeded the previously established final size, (2) an endpoint received a STREAM frame or a RESET_STREAM frame containing a final size that was lower than the size of stream data that was already received, or (3) an endpoint received a STREAM frame or a RESET_STREAM frame containing a different final size to the one already established.

ยง

FrameEncodingError = 7

An endpoint received a frame that was badly formatted โ€“ for instance, a frame of an unknown type or an ACK frame that has more acknowledgment ranges than the remainder of the packet could carry.

ยง

TransportParameterError = 8

An endpoint received transport parameters that were badly formatted, included an invalid value, omitted a mandatory transport parameter, included a forbidden transport parameter, or were otherwise in error.

ยง

ConnectionIdLimitError = 9

An endpoint received transport parameters that were badly formatted, included an invalid value, omitted a mandatory transport parameter, included a forbidden transport parameter, or were otherwise in error.

ยง

ProtocolViolation = 10

An endpoint detected an error with protocol compliance that was not covered by more specific error codes.

ยง

InvalidToken = 11

A server received a client Initial that contained an invalid Token field.

ยง

ApplicationError = 12

The application or application protocol caused the connection to be closed.

ยง

CryptoBufferExceeded = 13

An endpoint has received more data in CRYPTO frames than it can buffer.

ยง

KeyUpdateError = 14

An endpoint detected errors in performing key updates.

ยง

AeadLimitReached = 15

An endpoint has reached the confidentiality or integrity limit for the AEAD algorithm used by the given connection.

ยง

NoViablePath = 16

An endpoint has determined that the network path is incapable of supporting QUIC. An endpoint is unlikely to receive a CONNECTION_CLOSE frame carrying this code except when the path does not support a large enough MTU.

Trait Implementationsยง

Sourceยง

impl Clone for WireErrorCode

Sourceยง

fn clone(&self) -> WireErrorCode

Returns a duplicate 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

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

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.