Struct tet_libp2p_core::transport::map_err::MapErr[][src]

pub struct MapErr<T, F> { /* fields omitted */ }

See Transport::map_err.

Trait Implementations

impl<T: Clone, F: Clone> Clone for MapErr<T, F>[src]

impl<T: Copy, F: Copy> Copy for MapErr<T, F>[src]

impl<T: Debug, F: Debug> Debug for MapErr<T, F>[src]

impl<T, F, TErr> Transport for MapErr<T, F> where
    T: Transport,
    F: FnOnce(T::Error) -> TErr + Clone,
    TErr: Error
[src]

type Output = T::Output

The result of a connection setup process, including protocol upgrades. Read more

type Error = TErr

An error that occurred during connection setup.

type Listener = MapErrListener<T, F>

A stream of Outputs for inbound connections. Read more

type ListenerUpgrade = MapErrListenerUpgrade<T, F>

A pending Output for an inbound connection, obtained from the Listener stream. Read more

type Dial = MapErrDial<T, F>

A pending Output for an outbound connection, obtained from dialing. Read more

Auto Trait Implementations

impl<T, F> RefUnwindSafe for MapErr<T, F> where
    F: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, F> Send for MapErr<T, F> where
    F: Send,
    T: Send

impl<T, F> Sync for MapErr<T, F> where
    F: Sync,
    T: Sync

impl<T, F> Unpin for MapErr<T, F> where
    F: Unpin,
    T: Unpin

impl<T, F> UnwindSafe for MapErr<T, F> where
    F: UnwindSafe,
    T: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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