Trait async_std::stream::IntoStream[][src]

pub trait IntoStream {
    type Item;
    type IntoStream: Stream<Item = Self::Item>;
    fn into_stream(self) -> Self::IntoStream;
}

Conversion into a Stream.

By implementing IntoIterator for a type, you define how it will be converted to an iterator. This is common for types which describe a collection of some kind.

See also: FromStream.

Associated Types

type Item[src]

The type of the elements being iterated over.

type IntoStream: Stream<Item = Self::Item>[src]

Which kind of stream are we turning this into?

Loading content...

Required methods

fn into_stream(self) -> Self::IntoStream[src]

Creates a stream from a value.

Loading content...

Implementors

impl<I: Stream> IntoStream for I[src]

type Item = I::Item

type IntoStream = I

Loading content...