Expand description
Nix worker protocol wire format.
Clean-room implementation. All integers are 64-bit unsigned, little-endian. Byte buffers are length-prefixed (u64 LE) with zero-padding to 8-byte alignment.
Enums§
- Stderr
Msg - Stderr message types sent by the daemon during operation processing.
- Wire
Error - Worker
Op - Worker protocol operation codes.
Constants§
- PROTOCOL_
VERSION - Current protocol version (major.minor packed as u64).
- WORKER_
MAGIC_ 1 - Worker protocol magic: client sends this.
- WORKER_
MAGIC_ 2 - Worker protocol magic: server responds with this.
Functions§
- read_
bool - Read a bool (from u64: 0 or 1).
- read_
bytes - Read a length-prefixed, 8-byte-aligned byte buffer.
- read_
string - Read a UTF-8 string.
- read_
string_ list - Read a list of strings.
- read_
u64 - Read a u64 in little-endian.
- write_
bool - Write a bool (as u64: 0 or 1).
- write_
bytes - Write a length-prefixed, 8-byte-aligned byte buffer.
- write_
string - Write a UTF-8 string (as length-prefixed bytes).
- write_
string_ list - Write a list of strings.
- write_
u64 - Write a u64 in little-endian.