Skip to main content

Module wire

Module wire 

Source
Expand description

Wire encode + decode for crate::Message. Uses kevy-resp’s RESP2 multi-bulk array shape, identical to the keyspace plane — tcpdump-friendly text frames, single decoder path workspace-wide.

Enums§

DecodeError
Errors decode can surface.

Functions§

decode
Decode one Message off the front of buf. Returns the decoded message and the number of bytes consumed. The caller advances its read cursor by consumed on success, retries with more bytes on Truncated, and drops the connection on every other variant.
encode
Encode a Message as a RESP2 multi-bulk array.