Module tokio_io::codec [] [src]

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.

Modules

length_delimited

Frame a stream of bytes based on a length prefix

Structs

Framed

A unified Stream and Sink interface to an underlying I/O object, using the Encoder and Decoder traits to encode and decode frames.

FramedRead

A Stream of messages decoded from an AsyncRead.

FramedWrite

A Sink of frames encoded to an AsyncWrite.

Traits

Decoder

Decoding of frames via buffers.

Encoder

Trait of helper objects to write out messages as bytes, for use with FramedWrite.