Clone-stream
Convert any stream into a stream that is Clone
. The only requirement is that the item type of the base-stream implements Clone
.
Remark: A stream is an implementor of the Stream
trait from the futures
crate (also called an async iterator).
Installation
In an existing cargo
project:
If you would like to install the latest git
version instead of the release on crates.io:
Usage
See the docs for the API documentation.
How does it work?
The Rust integration tests in tests show some examples.
See my blog for more technical information.