#future #io #byte-buffer #async

yanked tokio-try-read-full

A future to read as many bytes as possible into a buffer

Uses old Rust 2015

0.1.0 Feb 10, 2018

#86 in #byte-buffer

MIT license

5KB
60 lines

tokio-try-read-full

Crates.io Documentation

This crate complemnts tokio-io's read_exact for scenarios where you want to read as many bytes as possible into a buffer until either the buffer is full or the reader returns EOF.


lib.rs:

This library provides a future to complement tokio-io's read_exact. Sometimes, you want to read as much as possible into a large buffer. It does not have to be an error to not fill the buffer.

Dependencies

~615KB
~11K SLoC