#[repr(u64)]
pub enum EndpointCloseReason {
Show 21 variants NoError = 0, InternalError = 1, ConnectionRefused = 2, FlowControlError = 3, StreamLimitError = 4, StreamStateError = 5, FinalStateError = 6, FrameEncodingError = 7, TransportParameterError = 8, ConnectionIdLimitError = 9, ProtocolViolation = 10, InvalidToken = 11, ApplicationError = 12, CryptoBufferExceeded = 13, KeyUpdateError = 14, AeadLimitReached = 15, NoViablePath = 16, MainStreamFinished = 17, BackgroundStreamFinished = 18, CryptoErrorStart = 256, CryptoErrorEnd = 511,
}
Expand description

Based on combination of QUIC Transport Error Codes and Endpoint Error Codes

Variants§

§

NoError = 0

No Error

§

InternalError = 1

Implementation Error

§

ConnectionRefused = 2

Server refuses a connection

§

FlowControlError = 3

Flow control error

§

StreamLimitError = 4

Too many streams opened

§

StreamStateError = 5

Frame received in invalid stream state

§

FinalStateError = 6

Change to final size

§

FrameEncodingError = 7

Frame encoding error

§

TransportParameterError = 8

Error in transport parameters

§

ConnectionIdLimitError = 9

Too many connection IDs received

§

ProtocolViolation = 10

Generic protocol violation

§

InvalidToken = 11

Invalid Token received

§

ApplicationError = 12

Application error

§

CryptoBufferExceeded = 13

CRYPTO data buffer overflowed

§

KeyUpdateError = 14

Invalid packet protection update

§

AeadLimitReached = 15

Excessive use of packet protection keys

§

NoViablePath = 16

No viable network path exists

§

MainStreamFinished = 17

Main stream finished

§

BackgroundStreamFinished = 18

Background stream finished

§

CryptoErrorStart = 256

TLS Alert Start

§

CryptoErrorEnd = 511

TLS Alert End

Trait Implementations§

source§

impl Debug for EndpointCloseReason

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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, U> TryFrom<U> for Twhere 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 Twhere 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.