mirror of
https://github.com/fafhrd91/actix-net
synced 2025-04-16 15:22:07 +02:00
23 lines
705 B
Rust
23 lines
705 B
Rust
//! 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`.
|
|
//!
|
|
//! [`Sink`]: futures_sink::Sink
|
|
//! [`Stream`]: futures_core::Stream
|
|
|
|
#![deny(rust_2018_idioms, nonstandard_style)]
|
|
#![warn(missing_docs)]
|
|
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
|
|
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
|
|
|
|
mod bcodec;
|
|
mod framed;
|
|
|
|
pub use self::bcodec::BytesCodec;
|
|
pub use self::framed::{Framed, FramedParts};
|
|
|
|
pub use tokio::io::{AsyncRead, AsyncWrite};
|
|
pub use tokio_util::codec::{Decoder, Encoder};
|