pub struct TransportErrorCode(/* private fields */);
Expand description

Transport-level error code

Implementations§

source§

impl Code

source

pub fn crypto(code: u8) -> Self

Create QUIC error code from TLS alert code

source§

impl Code

source

pub const NO_ERROR: Self = _

the connection is being closed abruptly in the absence of any error

source

pub const INTERNAL_ERROR: Self = _

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

source

pub const CONNECTION_REFUSED: Self = _

the server refused to accept a new connection

source

pub const FLOW_CONTROL_ERROR: Self = _

received more data than permitted in advertised data limits

source

pub const STREAM_LIMIT_ERROR: Self = _

received a frame for a stream identifier that exceeded advertised the stream limit for the corresponding stream type

source

pub const STREAM_STATE_ERROR: Self = _

received a frame for a stream that was not in a state that permitted that frame

source

pub const FINAL_SIZE_ERROR: Self = _

received a STREAM frame or a RESET_STREAM frame containing a different final size to the one already established

source

pub const FRAME_ENCODING_ERROR: Self = _

received a frame that was badly formatted

source

pub const TRANSPORT_PARAMETER_ERROR: Self = _

received transport parameters that were badly formatted, included an invalid value, was absent even though it is mandatory, was present though it is forbidden, or is otherwise in error

source

pub const CONNECTION_ID_LIMIT_ERROR: Self = _

the number of connection IDs provided by the peer exceeds the advertised active_connection_id_limit

source

pub const PROTOCOL_VIOLATION: Self = _

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

source

pub const INVALID_TOKEN: Self = _

received an invalid Retry Token in a client Initial

source

pub const APPLICATION_ERROR: Self = _

the application or application protocol caused the connection to be closed during the handshake

source

pub const CRYPTO_BUFFER_EXCEEDED: Self = _

received more data in CRYPTO frames than can be buffered

source

pub const KEY_UPDATE_ERROR: Self = _

key update error

source

pub const AEAD_LIMIT_REACHED: Self = _

the endpoint has reached the confidentiality or integrity limit for the AEAD algorithm

source

pub const NO_VIABLE_PATH: Self = _

no viable network path exists

Trait Implementations§

source§

impl Clone for Code

source§

fn clone(&self) -> Code

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 Code

source§

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

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

impl Display for Code

source§

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

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

impl From<Code> for Error

source§

fn from(x: Code) -> Self

Converts to this type from the input type.
source§

impl From<Code> for u64

source§

fn from(x: Code) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Code

source§

fn eq(&self, other: &Code) -> 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 Code

source§

impl Eq for Code

source§

impl StructuralPartialEq for Code

Auto Trait Implementations§

§

impl RefUnwindSafe for Code

§

impl Send for Code

§

impl Sync for Code

§

impl Unpin for Code

§

impl UnwindSafe for Code

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> 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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

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

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more