Enum libp2p_core::connection::PendingConnectionError [−][src]
pub enum PendingConnectionError<TTransErr> {
Transport(TTransErr),
ConnectionLimit(ConnectionLimit),
Aborted,
InvalidPeerId,
IO(Error),
}
Expand description
Errors that can occur in the context of a pending Connection
.
Variants
An error occurred while negotiating the transport protocol(s) on a connection.
ConnectionLimit(ConnectionLimit)
The connection was dropped because the connection limit for a peer has been reached.
Tuple Fields of ConnectionLimit
Pending connection attempt has been aborted.
The peer identity obtained on the connection did not match the one that was expected or is otherwise invalid.
IO(Error)
An I/O error occurred on the connection.
Tuple Fields of IO
0: Error