clone-stream 0.2.1

Lazily clone streams.
Documentation

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:

cargo add clone-stream futures

If you would like to install the latest git version instead of the release on crates.io:

cargo add --git https://github.com/wvhulle/clone-stream

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.