2018-10-05 22:07:09 +02:00
|
|
|
//! Utilities for encoding and decoding frames.
|
|
|
|
//!
|
|
|
|
//! Contains adapters to go from streams of bytes, [`AsyncRead`] and
|
|
|
|
//! [`AsyncWrite`], to framed streams implementing [`Sink`] and [`Stream`].
|
2020-06-02 19:05:39 +02:00
|
|
|
//! Framed streams are also known as `transports`.
|
2018-10-05 22:07:09 +02:00
|
|
|
//!
|
2020-06-02 19:05:39 +02:00
|
|
|
//! [`Sink`]: futures_sink::Sink
|
|
|
|
//! [`Stream`]: futures_core::Stream
|
2020-08-19 00:27:37 +02:00
|
|
|
|
2020-12-13 00:24:00 +01:00
|
|
|
#![deny(rust_2018_idioms, nonstandard_style)]
|
2020-08-19 00:27:37 +02:00
|
|
|
#![warn(missing_docs)]
|
2020-12-13 00:24:00 +01:00
|
|
|
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
|
|
|
|
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
|
2018-10-05 22:07:09 +02:00
|
|
|
|
2018-10-24 19:43:30 +02:00
|
|
|
mod bcodec;
|
2018-10-05 22:07:09 +02:00
|
|
|
mod framed;
|
|
|
|
|
2018-10-24 19:43:30 +02:00
|
|
|
pub use self::bcodec::BytesCodec;
|
2018-10-05 22:07:09 +02:00
|
|
|
pub use self::framed::{Framed, FramedParts};
|
2018-12-10 00:19:25 +01:00
|
|
|
|
2020-12-28 04:16:37 +01:00
|
|
|
pub use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
|
2019-12-05 08:11:56 +01:00
|
|
|
pub use tokio_util::codec::{Decoder, Encoder};
|
2020-12-28 04:16:37 +01:00
|
|
|
pub use tokio_util::io::poll_read_buf;
|