Expand description
VectorizerRPC frame codec — [u32 LE len][MessagePack body].
Wire spec § 1: docs/specs/VECTORIZER_RPC.md. Ported from
../Synap/synap-server/src/protocol/synap_rpc/codec.rs byte-for-byte
so a SynapRPC-conversant client only needs to swap command names to
talk to a Vectorizer server.
Constants§
- MAX_
BODY_ SIZE - Maximum body size accepted on the wire. Frames declaring a larger length crash the connection rather than allocate. 64 MiB is the documented cap in wire spec § 1.
Functions§
- decode_
frame - Decode one frame from a byte slice.
- encode_
frame - Encode any
Serializevalue into a length-prefixed MessagePack frame. - read_
request - Read one
Requestframe from an async reader. - read_
response - Read one
Responseframe from an async reader. Used by client implementations and round-trip tests. - write_
request - Write a
Requestframe to an async writer. - write_
response - Write a
Responseframe to an async writer.