Enum libp2p::core::upgrade::NegotiationError [−]
pub enum NegotiationError {
ProtocolError(ProtocolError),
Failed,
}
Expand description
Error that can happen when negotiating a protocol with the remote.
Variants
ProtocolError(ProtocolError)
A protocol error occurred during the negotiation.
Tuple Fields of ProtocolError
Protocol negotiation failed because no protocol could be agreed upon.
Trait Implementations
impl Debug for NegotiationError
impl Debug for NegotiationError
impl Display for NegotiationError
impl Display for NegotiationError
impl Error for NegotiationError
impl Error for NegotiationError
impl From<Error> for NegotiationError
impl From<Error> for NegotiationError
pub fn from(err: Error) -> NegotiationError
pub fn from(err: Error) -> NegotiationError
Performs the conversion.
Performs the conversion.
impl From<ProtocolError> for NegotiationError
impl From<ProtocolError> for NegotiationError
pub fn from(err: ProtocolError) -> NegotiationError
pub fn from(err: ProtocolError) -> NegotiationError
Performs the conversion.