Enum libp2p_core::connection::PendingConnectionError [−][src]
pub enum PendingConnectionError<TTransErr> {
Transport(TransportError<TTransErr>),
InvalidPeerId,
ConnectionLimit(ConnectionLimit),
IO(Error),
}Expand description
Errors that can occur in the context of a pending Connection.
Variants
Transport(TransportError<TTransErr>)An error occurred while negotiating the transport protocol(s).
The peer identity obtained on the connection did not match the one that was expected or is otherwise invalid.
ConnectionLimit(ConnectionLimit)The connection was dropped because the connection limit for a peer has been reached.
IO(Error)An I/O error occurred on the connection.
Trait Implementations
Auto Trait Implementations
impl<TTransErr> !RefUnwindSafe for PendingConnectionError<TTransErr>impl<TTransErr> Send for PendingConnectionError<TTransErr> where
TTransErr: Send, impl<TTransErr> Sync for PendingConnectionError<TTransErr> where
TTransErr: Sync, impl<TTransErr> Unpin for PendingConnectionError<TTransErr> where
TTransErr: Unpin, impl<TTransErr> !UnwindSafe for PendingConnectionError<TTransErr>