Crate actix_codec

source ·
Expand description

Codec utilities for working with framed protocols.

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.


  • Bytes codec. Reads/writes chunks of bytes from a stream.
  • A unified Stream and Sink interface to an underlying I/O object, using the Encoder and Decoder traits to encode and decode frames.
  • FramedParts contains an export of the data of a Framed transport.
  • Lines codec. Reads/writes line delimited strings.
  • A wrapper around a byte buffer that is incrementally filled and initialized.