/
View dependency graph
Depends on
- debhelper (debhelper)
- dh-cargo (dh-cargo)
- rust-bytes (librust-bytes-1+default-dev)
- rust-futures (librust-futures-0.3+default-dev)
- cargo, librust-memchr-2+default-dev, librust-pin-project-1+default-dev, librust-serde-1+default-dev, librust-serde-1+derive-dev, librust-serde-cbor-0.11+default-dev, librust-serde-json-1+default-dev, libstd-rust-dev, rustc
README (full)
futures_codec
Utilities for encoding and decoding frames using async/await.
Contains adapters to go from streams of bytes, AsyncRead and AsyncWrite,
to framed streams implementing Sink and Stream. Framed streams are also known as transports.
Example
use futures_codec::{LinesCodec, Framed};
async fn main() {
// let stream = ...
let mut framed = Framed::new(stream, LinesCodec {});
while let Some(line) = framed.try_next().await.unwrap() {
println!("{:?}", line);
}
}
| dir | benches/ |
| dir | debian/ |
| dir | src/ |
| dir | tests/ |
| file | .cargo_vcs_info.json |
| file | .gitignore |
| file | .travis.yml |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | LICENSE |
| file | README.md |