countio-0.1.0 has been yanked.
xwde: countio
Warning : The library is in active development. Expect breaking changes.
Note : The library contains unsafe code. See implementations of
AsyncReadandAsyncWritetraits for more details.
The wrapper struct to enable byte counting for std::io::Read and
std::io::Write and its asynchronous variants from futures and tokio.
Following features available:
stdto enablestd::io::Readandstd::io::Write. Enabled by default.futuresto enablefutures_io::AsyncReadandfutures_io::AsyncWrite.tokioto enabletokio::io::AsyncReadandtokio::io::AsyncWrite.
std::io::Read:
use *;
use BufReader;
use Counter;
std::io::Write:
use *;
use Counter;