mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
24 lines
793 B
Rust
24 lines
793 B
Rust
#![doc(html_root_url = "https://docs.rs/tokio-codec/0.1.1")]
|
|
#![deny(missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
|
#![cfg_attr(test, deny(warnings))]
|
|
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
|
|
|
|
//! 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]: #
|
|
|
|
mod bytes_codec;
|
|
mod lines_codec;
|
|
|
|
pub use crate::bytes_codec::BytesCodec;
|
|
pub use crate::lines_codec::LinesCodec;
|
|
pub use tokio_io::_tokio_codec::{Decoder, Encoder, Framed, FramedParts, FramedRead, FramedWrite};
|