Expand description
Stream decoders for the two Codec wire formats.
Adapt any std::io::Read (sync) or tokio::io::AsyncRead (async,
behind the tokio feature) into an iterator/stream of CodecFrames.
Structs§
- Msgpack
Frame Iter - Iterator over MessagePack frames pulled from
R. - Protobuf
Frame Iter - Iterator over length-prefixed protobuf frames pulled from
R.
Enums§
- Stream
Error - Errors raised by the stream decoders.
Functions§
- decode_
msgpack_ stream - Yield frames from a stream of concatenated MessagePack maps.
- decode_
protobuf_ frame - Decode a single CodecFrame protobuf payload (no length prefix).
- decode_
protobuf_ stream - Yield frames from a stream of length-prefixed protobuf
CodecFramepayloads. Wire: 4-byte big-endian length followed by the protobuf bytes. - encode_
msgpack_ frame - Encode
frameas a single MessagePack map. Used by tests and any caller that wants to round-trip via the wire format. - encode_
protobuf_ frame - Encode
frameas a length-prefixed protobuf frame (4-byte BE length + payload).