[−][src]Module tokio::codec
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
BytesCodec | A simple |
Framed | A unified |
FramedParts |
|
FramedRead | A |
FramedWrite | A |
LengthDelimitedCodec | A codec for frames delimited by a frame head specifying their lengths. |
LengthDelimitedCodecError | An error when the number of bytes read is more than max frame length. |
LinesCodec | A simple |
Enums
LinesCodecError | An error occured while encoding or decoding a line. |
Traits
Decoder | Decoding of frames via buffers. |
Encoder | Trait of helper objects to write out messages as bytes, for use with
|