Enum libp2p_core::UpgradeError[][src]

pub enum UpgradeError<E> {
    Select(NegotiationError),
    Apply(E),
}

Error that can happen when upgrading a connection or substream to use a protocol.

Variants

Error during the negotiation process.

Apply(E)

Error during the post-negotiation handshake.

Implementations

impl<E> UpgradeError<E>[src]

pub fn map_err<F, T>(self, f: F) -> UpgradeError<T> where
    F: FnOnce(E) -> T, 
[src]

pub fn into_err<T>(self) -> UpgradeError<T> where
    T: From<E>, 
[src]

Trait Implementations

impl<E: Debug> Debug for UpgradeError<E>[src]

impl<E> Display for UpgradeError<E> where
    E: Display
[src]

impl<E> Error for UpgradeError<E> where
    E: Error + 'static, 
[src]

impl<E> From<NegotiationError> for UpgradeError<E>[src]

Auto Trait Implementations

impl<E> !RefUnwindSafe for UpgradeError<E>[src]

impl<E> Send for UpgradeError<E> where
    E: Send
[src]

impl<E> Sync for UpgradeError<E> where
    E: Sync
[src]

impl<E> Unpin for UpgradeError<E> where
    E: Unpin
[src]

impl<E> !UnwindSafe for UpgradeError<E>[src]

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