Expand description
IPC protocol types and serialization for zccache.
Defines the message types exchanged between CLI/wrapper and daemon, and provides serialization/deserialization using bincode.
Re-exports§
pub use messages::*;
Modules§
- messages
- Protocol message definitions.
Enums§
- Protocol
Error - Protocol-level errors.
Constants§
- PROTOCOL_
VERSION - Protocol version number. Bump this when the wire format changes: new/removed/reordered enum variants or struct field changes. Patch releases that don’t change the protocol keep the same version.
Functions§
- decode_
message - Try to decode a message from a byte buffer.
- encode_
message - Serialize a message to a length-prefixed byte buffer with protocol version.