Expand description
Length-prefixed framing: [u32 BE length][u8 kind][payload].
The FrameCodec is a Tokio Decoder + Encoder that converts raw byte
streams into typed Frame values. Both MessagePack (default) and JSON
(debug) encodings are supported; the choice is set once at construction and
must match the Go supervisor’s transport.Conn encoding.
Frame kind constants align with go/transport:
KIND_REQUEST = 1— Go → RustKIND_RESPONSE = 2— Rust → GoKIND_EVENT = 3— Rust → Go (async, unsolicited)
Structs§
- Frame
Codec - Stateless codec; encoding is fixed at construction.
Enums§
Constants§
- KIND_
EVENT - KIND_
REQUEST - KIND_
RESPONSE - MAX_
FRAME_ PAYLOAD - Hard cap matching
transport.Connread loop (64 MiB).