Enum tet_libp2p_core::transport::upgrade::TransportUpgradeError[][src]

pub enum TransportUpgradeError<T, U> {
    Transport(T),
    Upgrade(UpgradeError<U>),
}

Errors produced by a transport upgrade.

Variants

Transport(T)

Error in the transport.

Upgrade(UpgradeError<U>)

Error while upgrading to a protocol.

Trait Implementations

impl<T: Debug, U: Debug> Debug for TransportUpgradeError<T, U>[src]

impl<T, U> Display for TransportUpgradeError<T, U> where
    T: Display,
    U: Display
[src]

impl<T, U> Error for TransportUpgradeError<T, U> where
    T: Error + 'static,
    U: Error + 'static, 
[src]

Auto Trait Implementations

impl<T, U> !RefUnwindSafe for TransportUpgradeError<T, U>

impl<T, U> Send for TransportUpgradeError<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for TransportUpgradeError<T, U> where
    T: Sync,
    U: Sync

impl<T, U> Unpin for TransportUpgradeError<T, U> where
    T: Unpin,
    U: Unpin

impl<T, U> !UnwindSafe for TransportUpgradeError<T, U>

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