1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-02-07 23:44:22 +01:00

25 lines
821 B
Rust
Raw Normal View History

2020-12-28 03:24:43 +00:00
//! Codec utilities for working with framed protocols.
2018-10-05 13:07:09 -07:00
//!
//! 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`.
2018-10-05 13:07:09 -07:00
//!
2020-06-03 01:05:39 +08:00
//! [`Sink`]: futures_sink::Sink
//! [`Stream`]: futures_core::Stream
2021-12-08 06:09:46 +00:00
#![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")]
2018-10-05 13:07:09 -07:00
2018-10-24 10:43:30 -07:00
mod bcodec;
2018-10-05 13:07:09 -07:00
mod framed;
2021-11-05 00:12:02 +00:00
mod lines;
2018-10-05 13:07:09 -07:00
pub use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
pub use tokio_util::codec::{Decoder, Encoder};
pub use tokio_util::io::poll_read_buf;
2022-04-10 02:48:53 +01:00
pub use self::bcodec::BytesCodec;
pub use self::framed::{Framed, FramedParts};
pub use self::lines::LinesCodec;