Struct libp2p_core::transport::map::Map[][src]

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

See Transport::map.

Trait Implementations

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

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

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

impl<T, F, D> Transport for Map<T, F> where
    T: Transport,
    F: FnOnce(T::Output, ConnectedPoint) -> D + Clone
[src]

type Output = D

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

type Error = T::Error

An error that occurred during connection setup.

type Listener = MapStream<T::Listener, F>

A stream of Outputs for inbound connections. Read more

type ListenerUpgrade = MapFuture<T::ListenerUpgrade, F>

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

type Dial = MapFuture<T::Dial, F>

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

Auto Trait Implementations

impl<T, F> RefUnwindSafe for Map<T, F> where
    F: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<T, F> Send for Map<T, F> where
    F: Send,
    T: Send
[src]

impl<T, F> Sync for Map<T, F> where
    F: Sync,
    T: Sync
[src]

impl<T, F> Unpin for Map<T, F> where
    F: Unpin,
    T: Unpin
[src]

impl<T, F> UnwindSafe for Map<T, F> where
    F: UnwindSafe,
    T: UnwindSafe
[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> 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>,