1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-12-19 13:12:39 +01:00
actix-net/actix-codec/src/lib.rs

21 lines
606 B
Rust
Raw Normal View History

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
//! [`AsyncRead`]: AsyncRead
//! [`AsyncWrite`]: AsyncWrite
//! [`Sink`]: futures_sink::Sink
//! [`Stream`]: futures_core::Stream
2020-07-19 22:44:26 +02:00
#![deny(rust_2018_idioms)]
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
pub use tokio::io::{AsyncRead, AsyncWrite};
pub use tokio_util::codec::{Decoder, Encoder};