Trait async_std::stream::IntoStream
source · [−]pub trait IntoStream {
type Item;
type IntoStream: Stream<Item = Self::Item>;
fn into_stream(self) -> Self::IntoStream;
}
Available on
unstable
only.Expand description
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
.
Required Associated Types
type IntoStream: Stream<Item = Self::Item>
type IntoStream: Stream<Item = Self::Item>
Which kind of stream are we turning this into?
Required Methods
fn into_stream(self) -> Self::IntoStream
fn into_stream(self) -> Self::IntoStream
Creates a stream from a value.