Module wire_framed::codec
source · Modules
- Frame a stream of bytes based on a length prefix
Structs
- Codec type for [
Message] that implements [tokio_util::codec::Decoder] and [tokio_util::codec::Encoder]. FramedPartscontains an export of the data of a Framed transport. It can be used to construct a newFramedwith a different codec. It contains all current buffers and the inner transport.- A
Sinkof frames encoded to anAsyncWrite. - A codec for frames delimited by a frame head specifying their lengths.
- An error when the number of bytes read is more than max frame length.
Enums
- An error occurred while encoding or decoding a chunk.
- An error occurred while encoding or decoding a line.