[−][src]Module tokio_util::codec
codec
only.Adaptors from AsyncRead/AsyncWrite to Stream/Sink
Raw I/O objects work with byte sequences, but higher-level code usually wants to batch these into meaningful chunks, called "frames".
This module 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.
Re-exports
pub use self::length_delimited::LengthDelimitedCodec; |
pub use self::length_delimited::LengthDelimitedCodecError; |
Modules
length_delimited | codec Frame a stream of bytes based on a length prefix |
Structs
BytesCodec | codec A simple |
Framed | codec A unified |
FramedParts | codec
|
FramedRead | codec
|
FramedWrite | codec A |
LinesCodec | codec A simple |
Enums
LinesCodecError | codec An error occured while encoding or decoding a line. |
Traits
Decoder | codec Decoding of frames via buffers. |
Encoder | codec Trait of helper objects to write out messages as bytes, for use with
|