[][src]Enum libp2p_core::nodes::network::NetworkReachError

pub enum NetworkReachError<TTransErr, TConnInfo> {
    Transport(TransportError<TTransErr>),
    PeerIdMismatch {
        obtained: TConnInfo,
    },
}

Error that can happen when trying to reach a node.

Variants

Transport(TransportError<TTransErr>)

Error in the transport layer.

PeerIdMismatch

We successfully reached the peer, but there was a mismatch between the expected id and the actual id of the peer.

Fields of PeerIdMismatch

obtained: TConnInfo

The information about the other connection.

Trait Implementations

impl<TTransErr: Debug, TConnInfo: Debug> Debug for NetworkReachError<TTransErr, TConnInfo>[src]

impl<TTransErr, TConnInfo> Display for NetworkReachError<TTransErr, TConnInfo> where
    TTransErr: Display,
    TConnInfo: Debug
[src]

impl<TTransErr, TConnInfo> Error for NetworkReachError<TTransErr, TConnInfo> where
    TTransErr: Error + 'static,
    TConnInfo: Debug
[src]

Auto Trait Implementations

impl<TTransErr, TConnInfo> RefUnwindSafe for NetworkReachError<TTransErr, TConnInfo> where
    TConnInfo: RefUnwindSafe,
    TTransErr: RefUnwindSafe

impl<TTransErr, TConnInfo> Send for NetworkReachError<TTransErr, TConnInfo> where
    TConnInfo: Send,
    TTransErr: Send

impl<TTransErr, TConnInfo> Sync for NetworkReachError<TTransErr, TConnInfo> where
    TConnInfo: Sync,
    TTransErr: Sync

impl<TTransErr, TConnInfo> Unpin for NetworkReachError<TTransErr, TConnInfo> where
    TConnInfo: Unpin,
    TTransErr: Unpin

impl<TTransErr, TConnInfo> UnwindSafe for NetworkReachError<TTransErr, TConnInfo> where
    TConnInfo: UnwindSafe,
    TTransErr: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,