Enum libp2p_quic::ConnectionError [−][src]
pub enum ConnectionError { VersionMismatch, TransportError(Error), ConnectionClosed(ConnectionClose), ApplicationClosed(ApplicationClose), Reset, TimedOut, LocallyClosed, }
Expand description
Reasons why a connection might be lost
Variants
Expand description
The peer doesn’t implement any supported version
TransportError(Error)
Expand description
The peer violated the QUIC specification as understood by this implementation
ConnectionClosed(ConnectionClose)
Expand description
The peer’s QUIC stack aborted the connection automatically
ApplicationClosed(ApplicationClose)
Expand description
The peer closed the connection
Expand description
The peer is unable to continue processing this connection, usually due to having restarted
Expand description
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()
.
Expand description
The local application closed the connection
Trait Implementations
impl Clone for ConnectionError
[src]
impl Clone for ConnectionError
[src]pub fn clone(&self) -> ConnectionError
[src]
pub fn clone(&self) -> ConnectionError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ConnectionError
[src]
impl Debug for ConnectionError
[src]impl Display for ConnectionError
[src]
impl Display for ConnectionError
[src]impl Error for ConnectionError
[src]
impl Error for ConnectionError
[src]pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<Close> for ConnectionError
[src]
impl From<Close> for ConnectionError
[src]pub fn from(x: Close) -> ConnectionError
[src]
pub fn from(x: Close) -> ConnectionError
[src]Performs the conversion.
impl From<Error> for ConnectionError
[src]
impl From<Error> for ConnectionError
[src]pub fn from(source: Error) -> ConnectionError
[src]
pub fn from(source: Error) -> ConnectionError
[src]Performs the conversion.
impl PartialEq<ConnectionError> for ConnectionError
[src]
impl PartialEq<ConnectionError> for ConnectionError
[src]pub fn eq(&self, other: &ConnectionError) -> bool
[src]
pub fn eq(&self, other: &ConnectionError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ConnectionError) -> bool
[src]
pub fn ne(&self, other: &ConnectionError) -> bool
[src]This method tests for !=
.
impl Eq for ConnectionError
[src]
impl StructuralEq for ConnectionError
[src]
impl StructuralPartialEq for ConnectionError
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,