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

24 lines
781 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`].
2020-06-03 01:05:39 +08:00
//! 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-04-16 02:06:11 +01:00
#![deny(rust_2018_idioms, nonstandard_style, future_incompatible)]
#![warn(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;
2018-10-24 10:43:30 -07:00
pub use self::bcodec::BytesCodec;
2018-10-05 13:07:09 -07:00
pub use self::framed::{Framed, FramedParts};
2018-12-09 15:19:25 -08:00
pub use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
pub use tokio_util::codec::{Decoder, Encoder};
pub use tokio_util::io::poll_read_buf;