Enum libp2p::core::connection::ConnectionError [−][src]
pub enum ConnectionError<THandlerErr> {
IO(Error),
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.
The connection handler produced an error.
Trait Implementations
Auto Trait Implementations
impl<THandlerErr> !RefUnwindSafe for ConnectionError<THandlerErr>impl<THandlerErr> Send for ConnectionError<THandlerErr> where
THandlerErr: Send, impl<THandlerErr> Sync for ConnectionError<THandlerErr> where
THandlerErr: Sync, impl<THandlerErr> Unpin for ConnectionError<THandlerErr> where
THandlerErr: Unpin, impl<THandlerErr> !UnwindSafe for ConnectionError<THandlerErr>Blanket Implementations
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)Converts a reference to Self into a dynamic trait object of Fail.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V