[][src]Struct async_std::stream::Flatten

pub struct Flatten<S> where
    S: Stream,
    S::Item: IntoStream
{ /* fields omitted */ }

A stream that flattens one level of nesting in an stream of things that can be turned into streams.

This struct is created by the flatten method on Stream. See its documentation for more.

Trait Implementations

impl<S, U> Debug for Flatten<S> where
    S: Debug + Stream,
    S::Item: IntoStream<IntoStream = U, Item = U::Item>,
    U: Debug + Stream
[src]

This is supported on unstable only.

impl<S, U> Stream for Flatten<S> where
    S: Stream,
    S::Item: IntoStream<IntoStream = U, Item = U::Item>,
    U: Stream
[src]

This is supported on unstable only.

type Item = U::Item

The type of items yielded by this stream.

impl<'__pin, S> Unpin for Flatten<S> where
    __Origin<'__pin, S>: Unpin,
    S: Stream,
    S::Item: IntoStream
[src]

This is supported on unstable only.

Auto Trait Implementations

impl<S> RefUnwindSafe for Flatten<S> where
    S: RefUnwindSafe,
    <<S as Stream>::Item as IntoStream>::IntoStream: RefUnwindSafe
[src]

impl<S> Send for Flatten<S> where
    S: Send,
    <<S as Stream>::Item as IntoStream>::IntoStream: Send
[src]

impl<S> Sync for Flatten<S> where
    S: Sync,
    <<S as Stream>::Item as IntoStream>::IntoStream: Sync
[src]

impl<S> UnwindSafe for Flatten<S> where
    S: UnwindSafe,
    <<S as Stream>::Item as IntoStream>::IntoStream: 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, 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.