Multiple Readers
multiple-readers is a Rust library aimed at simplifying the process of combining multiple types that implement the std::io::Read trait into a unified reader.
Features
- Combines multiple types that implement the std::io::Read trait into a unified reader.
- Provides SliceReader and BytesReader types, which respectively wrap
&[u8]andVec<u8>, implementing the std::io::Read and tokio::io::AsyncRead trait. - Can read from data sources sequentially until all data sources are exhausted.
- Supports tokio (
Unstable)
Example
use ;
use ;
Async Example
- dependencies
= { = "*", = ["full"]}
= { = "*", = ["async"]}
use *;
use AsyncReadExt;
async