Expand description
Utilities for encoding and decoding frames.
Note: This crate is deprecated in tokio 0.2.x and has been moved into
tokio_util::codec
of thetokio-util
crate behind thecodec
feature flag.
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.
Structs§
- Bytes
Codec - A simple
Codec
implementation that just ships bytes around. - Framed
- A unified
Stream
andSink
interface to an underlying I/O object, using theEncoder
andDecoder
traits to encode and decode frames. - Framed
Parts FramedParts
contains an export of the data of a Framed transport. It can be used to construct a newFramed
with a different codec. It contains all current buffers and the inner transport.- Framed
Read - A
Stream
of messages decoded from anAsyncRead
. - Framed
Write - A
Sink
of frames encoded to anAsyncWrite
. - Lines
Codec - A simple
Codec
implementation that splits up data into lines.