Enum quinn_proto::ConnectionError
source · [−]pub enum ConnectionError {
VersionMismatch,
TransportError(TransportError),
ConnectionClosed(ConnectionClose),
ApplicationClosed(ApplicationClose),
Reset,
TimedOut,
LocallyClosed,
}
Expand description
Reasons why a connection might be lost
Variants
VersionMismatch
The peer doesn’t implement any supported version
TransportError(TransportError)
The peer violated the QUIC specification as understood by this implementation
ConnectionClosed(ConnectionClose)
The peer’s QUIC stack aborted the connection automatically
ApplicationClosed(ApplicationClose)
The peer closed the connection
Reset
The peer is unable to continue processing this connection, usually due to having restarted
TimedOut
Communication with the peer has lapsed for longer than the negotiated idle timeout
If neither side is sending keep-alives, a connection will time out after a long enough idle
period even if the peer is still reachable. See also TransportConfig::max_idle_timeout()
and TransportConfig::keep_alive_interval()
.
LocallyClosed
The local application closed the connection
Trait Implementations
sourceimpl Clone for ConnectionError
impl Clone for ConnectionError
sourcefn clone(&self) -> ConnectionError
fn clone(&self) -> ConnectionError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConnectionError
impl Debug for ConnectionError
sourceimpl Display for ConnectionError
impl Display for ConnectionError
sourceimpl Error for ConnectionError
impl Error for ConnectionError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ConnectionError> for Error
impl From<ConnectionError> for Error
sourcefn from(x: ConnectionError) -> Error
fn from(x: ConnectionError) -> Error
Converts to this type from the input type.
sourceimpl From<Error> for ConnectionError
impl From<Error> for ConnectionError
sourcefn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ConnectionError> for ConnectionError
impl PartialEq<ConnectionError> for ConnectionError
sourcefn eq(&self, other: &ConnectionError) -> bool
fn eq(&self, other: &ConnectionError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConnectionError) -> bool
fn ne(&self, other: &ConnectionError) -> bool
This method tests for !=
.
impl Eq for ConnectionError
impl StructuralEq for ConnectionError
impl StructuralPartialEq for ConnectionError
Auto Trait Implementations
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more