[−][src]Module tokio_util::codec
feature="codec"
only.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.
Re-exports
pub use self::length_delimited::LengthDelimitedCodec; |
pub use self::length_delimited::LengthDelimitedCodecError; |
Modules
length_delimited | feature="codec" Frame a stream of bytes based on a length prefix |
Structs
BytesCodec | feature="codec" A simple |
Framed | feature="codec" A unified |
FramedParts | feature="codec"
|
FramedRead | feature="codec" A |
FramedWrite | feature="codec" A |
LinesCodec | feature="codec" A simple |
Enums
LinesCodecError | feature="codec" An error occured while encoding or decoding a line. |
Traits
Decoder | feature="codec" Decoding of frames via buffers. |
Encoder | feature="codec" Trait of helper objects to write out messages as bytes, for use with
|