[][src]Enum libp2prs_core::transport::TransportError

pub enum TransportError {
    MultiaddrNotSupported(Multiaddr),
    Timeout,
    Unreachable,
    Routing(String),
    Internal,
    IoError(Error),
    ResolveFail(String),
    NegotiationError(NegotiationError),
    ProtectorError(PnetError),
    SecurityError(Box<dyn Error + Send + Sync>),
    StreamMuxerError(Box<dyn Error + Send + Sync>),
    WsError(Box<dyn Error + Send + Sync>),
}

An error during dialing or [accepting][Transport::IListener::accept] on a Transport.

Variants

MultiaddrNotSupported(Multiaddr)

The Multiaddr passed as parameter is not supported.

Contains back the same address.

Timeout

The connection can not be established in time.

Unreachable

The memory transport is unreachable.

Routing(String)

Routing to the peer is not available.

Internal

Internal error

IoError(Error)

Any IO error that a Transport may produce.

ResolveFail(String)

Failed to find any IP address for this DNS address.

NegotiationError(NegotiationError)

Multistream selection error.

ProtectorError(PnetError)

Pnet layer error.

SecurityError(Box<dyn Error + Send + Sync>)

Security layer error.

StreamMuxerError(Box<dyn Error + Send + Sync>)

StreamMuxer layer error

WsError(Box<dyn Error + Send + Sync>)

websocket error

Trait Implementations

impl Debug for TransportError[src]

impl Display for TransportError[src]

impl Error for TransportError[src]

impl From<Error> for TransportError[src]

fn from(e: Error) -> Self[src]

Converts IO error to TransportError

impl From<NegotiationError> for TransportError[src]

impl From<PnetError> for TransportError[src]

Auto Trait Implementations

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>,