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

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

Custom Stream implementation to avoid boxing.

Maps a function over every stream item.

Trait Implementations

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

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

impl<T, F, A, B, X> Stream for MapStream<T, F> where
    T: Stream<Item = ListenerEvent<X>>,
    X: Future<Item = A>,
    F: FnOnce(A, ConnectedPoint) -> B + Clone
[src]

type Item = ListenerEvent<MapFuture<X, F>>

The type of item this stream will yield on success.

type Error = T::Error

The type of error this stream may generate.

Auto Trait Implementations

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

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

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

impl<T, F> UnwindSafe for MapStream<T, F> where
    F: UnwindSafe,
    T: UnwindSafe

impl<T, F> RefUnwindSafe for MapStream<T, F> where
    F: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

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

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

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<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>,