Skip to main content

Module ipc_binary

Module ipc_binary 

Source

Structs§

ExecutionErrorBin
Structured error in binary format.

Enums§

BinaryFrame
A decoded binary frame — all fields are borrowed or owned depending on use.

Functions§

encode_frame_into
Encode a binary frame into a provided buffer (length prefix + body). The buffer is cleared first; capacity is preserved across calls. Used by per-session buffering to avoid per-call allocation.
extract_session_id
Extract session_id from raw frame bytes without full deserialization. raw starts at the first byte after the 4-byte length prefix (i.e. the msg_type byte). Returns None for Authenticate (which has no session_id).
frame_to_bytes
Serialize a binary frame to a complete byte vector (length prefix + body). Used by per-session buffering to build the frame without holding any shared lock.
read_frame
Read a binary frame from a reader.
write_frame
Write a binary frame to a writer.