Crates.io | buf_stream |
lib.rs | buf_stream |
version | 0.2.0 |
source | src |
created_at | 2020-08-22 22:22:32.093593 |
updated_at | 2020-08-22 22:22:32.093593 |
description | Buffered I/O for streams where each read/write half is separately buffered. Fork of bufstream. |
homepage | https://github.com/alexdelorenzo/buf_stream |
repository | https://github.com/alexdelorenzo/buf_stream |
max_upload_size | |
id | 279625 |
size | 24,718 |
Buffered I/O streams for reading/writing
buf_stream
is a fork of bufstream by Alex Chrichton.
[dependencies]
buf_stream = "0.2"
There is support for tokio's AsyncRead
+ AsyncWrite
traits through the tokio
feature. When using this crate with asynchronous IO, make sure to properly flush
the stream before dropping it since IO during drop may cause panics. For the same
reason you should stay away from BufStream::into_inner
.