Enum libp2p_core::upgrade::ProtocolError [−][src]
pub enum ProtocolError { IoError(Error), InvalidMessage, InvalidProtocol, TooManyProtocols, }
A protocol error.
Variants
IoError(Error)
I/O error.
Received an invalid message from the remote.
A protocol (name) is invalid.
Too many protocols have been returned by the remote.
Trait Implementations
impl Display for ProtocolError
[src]
impl Display for ProtocolError
[src]impl Error for ProtocolError
[src]
impl Error for ProtocolError
[src]impl From<Error> for ProtocolError
[src]
impl From<Error> for ProtocolError
[src]pub fn from(err: Error) -> ProtocolError
[src]
impl From<Error> for ProtocolError
[src]
impl From<Error> for ProtocolError
[src]pub fn from(err: Error) -> ProtocolError
[src]
impl From<ProtocolError> for NegotiationError
[src]
impl From<ProtocolError> for NegotiationError
[src]