Enum libp2p_swarm::ConnectionError
source · pub enum ConnectionError<THandlerErr> {
IO(Error),
KeepAliveTimeout,
Handler(THandlerErr),
}
Expand description
Errors that can occur in the context of an established Connection
.
Variants§
IO(Error)
An I/O error occurred on the connection.
KeepAliveTimeout
The connection keep-alive timeout expired.
Handler(THandlerErr)
The connection handler produced an error.
Trait Implementations§
source§impl<THandlerErr: Debug> Debug for ConnectionError<THandlerErr>
impl<THandlerErr: Debug> Debug for ConnectionError<THandlerErr>
source§impl<THandlerErr> Display for ConnectionError<THandlerErr>where
THandlerErr: Display,
impl<THandlerErr> Display for ConnectionError<THandlerErr>where
THandlerErr: Display,
source§impl<THandlerErr> Error for ConnectionError<THandlerErr>where
THandlerErr: Error + 'static,
impl<THandlerErr> Error for ConnectionError<THandlerErr>where
THandlerErr: Error + 'static,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()