File: lib.rs

package info (click to toggle)
rust-actix-codec 0.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 156 kB
  • sloc: makefile: 2
file content (28 lines) | stat: -rw-r--r-- 803 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! Codec utilities for working with framed protocols.
//!
//! 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`.
//!
//! [`Sink`]: futures_sink::Sink
//! [`Stream`]: futures_core::Stream

#![deny(rust_2018_idioms, nonstandard_style)]
#![warn(future_incompatible, missing_docs)]
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]

pub use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
pub use tokio_util::{
    codec::{Decoder, Encoder},
    io::poll_read_buf,
};

mod bcodec;
mod framed;
mod lines;

pub use self::{
    bcodec::BytesCodec,
    framed::{Framed, FramedParts},
    lines::LinesCodec,
};