Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexdelorenzo/buf_stream
https://github.com/alexdelorenzo/buf_stream
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexdelorenzo/buf_stream
- Owner: alexdelorenzo
- License: apache-2.0
- Created: 2020-08-22T22:13:40.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T22:20:35.000Z (about 4 years ago)
- Last Synced: 2024-09-15T18:57:05.034Z (about 2 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
buf_stream
=========Buffered I/O streams for reading/writing
## About
`buf_stream` is a fork of [bufstream](https://github.com/alexcrichton/bufstream) by Alex Chrichton.## Usage
```toml
[dependencies]
buf_stream = "0.2"
```## Tokio
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`.