iroh_quinn_proto

Struct TransportErrorCode

Source
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

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 Code

Source§

impl Eq for Code

Source§

impl StructuralPartialEq for Code

Auto Trait Implementations§

§

impl Freeze for Code

§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

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

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.
Source§

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

Source§

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