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.
Protocol negotiation failed because no protocol could be agreed upon.
Trait Implementations
impl Debug for NegotiationError
impl Debug for NegotiationErrorimpl Display for NegotiationError
impl Display for NegotiationErrorimpl Error for NegotiationError
impl Error for NegotiationErrorimpl From<Error> for NegotiationError
impl From<Error> for NegotiationErrorpub fn from(err: Error) -> NegotiationError
pub fn from(err: Error) -> NegotiationErrorPerforms the conversion.
Performs the conversion.
impl From<ProtocolError> for NegotiationError
impl From<ProtocolError> for NegotiationErrorpub fn from(err: ProtocolError) -> NegotiationError
pub fn from(err: ProtocolError) -> NegotiationErrorPerforms the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for NegotiationErrorimpl Send for NegotiationErrorimpl Sync for NegotiationErrorimpl Unpin for NegotiationErrorimpl !UnwindSafe for NegotiationErrorBlanket 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