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