Enum qp2p::ConnectionError [−][src]
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
The endpoint has been stopped.
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.
Tuple Fields of InvalidAddress
0: SocketAddrInternalConfigError(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.
Tuple Fields of InternalConfigError
The peer doesn’t implement the supported version.
TransportError(TransportError)The peer violated the QUIC specification as understood by this implementation.
Tuple Fields of TransportError
The peer is unable to continue processing this connection, usually due to having restarted.
Communication with the peer has lapsed for longer than the negotiated idle timeout.
Closed(Close)The connection was closed.
Tuple Fields of Closed
0: CloseTrait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more