[][src]Struct libp2p_core::transport::upgrade::ListenerStream

pub struct ListenerStream<S, U> { /* fields omitted */ }

The Transport::Listener stream of an Upgraded transport.

Trait Implementations

impl<S, U, F, I, C, D> Stream for ListenerStream<S, U> where
    S: Stream<Item = ListenerEvent<F>>,
    F: Future<Item = (I, C)>,
    C: AsyncRead + AsyncWrite,
    U: InboundUpgrade<C, Output = D> + Clone
[src]

type Item = ListenerEvent<ListenerUpgradeFuture<F, U, I, C>>

The type of item this stream will yield on success.

type Error = TransportUpgradeError<S::Error, U::Error>

The type of error this stream may generate.

Auto Trait Implementations

impl<S, U> Send for ListenerStream<S, U> where
    S: Send,
    U: Send

impl<S, U> Sync for ListenerStream<S, U> where
    S: Sync,
    U: Sync

impl<S, U> Unpin for ListenerStream<S, U> where
    S: Unpin,
    U: Unpin

impl<S, U> UnwindSafe for ListenerStream<S, U> where
    S: UnwindSafe,
    U: UnwindSafe

impl<S, U> RefUnwindSafe for ListenerStream<S, U> where
    S: RefUnwindSafe,
    U: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,