Enum wtransport::error::ConnectionError
source · pub enum ConnectionError {
ConnectionClosed(ConnectionClose),
ApplicationClosed(ApplicationClose),
LocallyClosed,
LocalH3Error(H3Error),
TimedOut,
QuicProto(QuicProtoError),
}
Expand description
An enumeration representing various errors that can occur during a WebTransport connection.
Variants§
ConnectionClosed(ConnectionClose)
The connection was aborted by the peer (protocol level).
ApplicationClosed(ApplicationClose)
The connection was closed by the peer (application level).
LocallyClosed
The connection was locally closed.
LocalH3Error(H3Error)
The connection was locally closed because an HTTP3 protocol violation.
TimedOut
The connection timed out.
QuicProto(QuicProtoError)
The connection was closed because a QUIC protocol error.
Trait Implementations§
source§impl Debug for ConnectionError
impl Debug for ConnectionError
source§impl Display for ConnectionError
impl Display for ConnectionError
source§impl Error for ConnectionError
impl Error for ConnectionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ConnectionError> for ConnectionError
impl From<ConnectionError> for ConnectionError
source§fn from(error: ConnectionError) -> Self
fn from(error: ConnectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<S> IntoConnectOptions for Swhere
S: ToString,
impl<S> IntoConnectOptions for Swhere
S: ToString,
source§fn into_options(self) -> ConnectOptions
fn into_options(self) -> ConnectOptions
Perform value-to-value conversion into
ConnectOptions
.