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: Clone, C: Clone> Clone for AndThen<T, C>[src]

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

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

type Output = O

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

type Error = EitherError<T::Error, F::Error>

An error that occurred during connection setup.

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

A stream of Outputs for inbound connections. Read more

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

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

type Dial = AndThenFuture<T::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
[src]

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

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

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

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