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`].
|
|
|
|
//! Framed streams are also known as [transports].
|
|
|
|
//!
|
|
|
|
//! [`AsyncRead`]: #
|
|
|
|
//! [`AsyncWrite`]: #
|
|
|
|
//! [`Sink`]: #
|
|
|
|
//! [`Stream`]: #
|
|
|
|
//! [transports]: #
|
|
|
|
|
2018-10-24 19:43:30 +02:00
|
|
|
mod bcodec;
|
2018-10-05 22:07:09 +02:00
|
|
|
mod framed;
|
|
|
|
mod framed_read;
|
|
|
|
mod framed_write;
|
|
|
|
|
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};
|
|
|
|
pub use self::framed_read::FramedRead;
|
|
|
|
pub use self::framed_write::FramedWrite;
|
2018-12-10 00:19:25 +01:00
|
|
|
|
|
|
|
pub use tokio_codec::{Decoder, Encoder};
|
|
|
|
pub use tokio_io::{AsyncRead, AsyncWrite};
|