[][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> PinnedDrop for MapStream<T, F>[src]

impl<T, F, A, B, X, E> Stream for MapStream<T, F> where
    T: TryStream<Ok = ListenerEvent<X, E>, Error = E>,
    X: TryFuture<Ok = A>,
    F: FnOnce(A, ConnectedPoint) -> B + Clone
[src]

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

Values yielded by the stream.

impl<'pin, T, F> Unpin for MapStream<T, F> where
    __MapStream<'pin, T, F>: Unpin
[src]

impl<T, F> UnsafeUnpin for MapStream<T, F>[src]

Auto Trait Implementations

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

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> UnwindSafe for MapStream<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

type Output = T

Should always be Self

impl<T> StreamExt for T where
    T: Stream + ?Sized
[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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]

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