[−][src]Trait async_std::stream::Product
This is supported on
unstable
only.Trait to represent types that can be created by productming up a stream.
This trait is used to implement the product
method on streams. Types which
implement the trait can be generated by the product
method. Like
FromStream
this trait should rarely be called directly and instead
interacted with through Stream::product
.
Required methods
fn product<S, F>(stream: S) -> F where
S: Stream<Item = A>,
F: Future<Output = Self>,
S: Stream<Item = A>,
F: Future<Output = Self>,
This is supported on
unstable
only.Method which takes a stream and generates Self
from the elements by
multiplying the items.