Struct libp2p::core::transport::and_then::AndThen[][src]

pub struct AndThen<T, C> { /* fields omitted */ }

See the Transport::and_then method.

Trait Implementations

impl<T, C> Clone for AndThen<T, C> where
    C: Clone,
    T: Clone
[src]

impl<T, C> Debug for AndThen<T, C> where
    C: Debug,
    T: Debug
[src]

impl<T, C, F, O> Transport for AndThen<T, C> where
    C: FnOnce(<T as Transport>::Output, ConnectedPoint) -> F + Clone,
    F: TryFuture<Ok = O>,
    T: Transport,
    <F as TryFuture>::Error: Error
[src]

type Output = O

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

type Error = EitherError<<T as Transport>::Error, <F as TryFuture>::Error>

An error that occurred during connection setup.

type Listener = AndThenStream<<T as Transport>::Listener, C>

A stream of Outputs for inbound connections. Read more

type ListenerUpgrade = AndThenFuture<<T as Transport>::ListenerUpgrade, C, F>

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

type Dial = AndThenFuture<<T as Transport>::Dial, C, F>

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

Auto Trait Implementations

impl<T, C> RefUnwindSafe for AndThen<T, C> where
    C: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, C> Send for AndThen<T, C> where
    C: Send,
    T: Send

impl<T, C> Sync for AndThen<T, C> where
    C: Sync,
    T: Sync

impl<T, C> Unpin for AndThen<T, C> where
    C: Unpin,
    T: Unpin

impl<T, C> UnwindSafe for AndThen<T, C> where
    C: 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]