Enum qp2p::ConnectionError
source · pub enum ConnectionError {
Stopped,
TooManyConnections,
InvalidAddress(SocketAddr),
InternalConfigError(InternalConfigError),
VersionMismatch,
TransportError(TransportError),
Reset,
TimedOut,
Closed(Close),
}
Expand description
Errors that can cause connection loss.
Variants§
Stopped
The endpoint has been stopped.
TooManyConnections
The number of active connections on the local endpoint is at the limit.
This limit is imposed by the underlying connection ID generator, which is not currently configurable.
InvalidAddress(SocketAddr)
Invalid remote address.
Examples include attempting to connect to port 0
or using an inappropriate address family.
InternalConfigError(InternalConfigError)
Internal configuration error.
This should not occur (if it does, there’s a bug!), but it covers possible misconfigurations of the underlying transport library.
VersionMismatch
The peer doesn’t implement the supported version.
TransportError(TransportError)
The peer violated the QUIC specification as understood by this implementation.
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.
Closed(Close)
The connection was closed.
Trait Implementations§
source§impl Clone for ConnectionError
impl Clone for ConnectionError
source§fn clone(&self) -> ConnectionError
fn clone(&self) -> ConnectionError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§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
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ConnectError> for ConnectionError
impl From<ConnectError> for ConnectionError
source§fn from(error: ConnectError) -> Self
fn from(error: ConnectError) -> Self
source§impl From<ConnectionError> for ConnectionError
impl From<ConnectionError> for ConnectionError
source§fn from(error: ConnectionError) -> Self
fn from(error: ConnectionError) -> Self
source§impl From<ConnectionError> for RecvError
impl From<ConnectionError> for RecvError
source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
source§impl From<ConnectionError> for RpcError
impl From<ConnectionError> for RpcError
source§fn from(error: ConnectionError) -> Self
fn from(error: ConnectionError) -> Self
source§impl From<ConnectionError> for SendError
impl From<ConnectionError> for SendError
source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
source§impl PartialEq<ConnectionError> for ConnectionError
impl PartialEq<ConnectionError> for ConnectionError
source§fn eq(&self, other: &ConnectionError) -> bool
fn eq(&self, other: &ConnectionError) -> bool
self
and other
values to be equal, and is used
by ==
.