[][src]Enum libp2p_core::nodes::raw_swarm::RawSwarmReachError

pub enum RawSwarmReachError<TTransErr> {
    Transport(TransportError<TTransErr>),
    PeerIdMismatch {
        obtained: PeerId,
    },
}

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: PeerId

The peer id that the node reports.

Trait Implementations

impl<TTransErr: Debug> Debug for RawSwarmReachError<TTransErr>
[src]

impl<TTransErr> Display for RawSwarmReachError<TTransErr> where
    TTransErr: Display
[src]

impl<TTransErr> Error for RawSwarmReachError<TTransErr> where
    TTransErr: Error + 'static, 
[src]

fn description(&self) -> &str
1.0.0
[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl<TTransErr> Send for RawSwarmReachError<TTransErr> where
    TTransErr: Send

impl<TTransErr> Sync for RawSwarmReachError<TTransErr> where
    TTransErr: Sync

Blanket Implementations

impl<T> From for T
[src]

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

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Erased for T