Struct libp2p::core::transport::map::Map[][src]

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

See Transport::map.

Trait Implementations

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

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

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

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

type Output = D

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

type Error = <T as Transport>::Error

An error that occurred during connection setup.

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

A stream of Outputs for inbound connections. Read more

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

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

type Dial = MapFuture<<T as Transport>::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

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

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

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

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

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>, 
[src]