apfsds-protocol
Wire protocol definitions and frame serialization for APFSDS.
Features
- Zero-copy serialization using
rkyv - ProxyFrame: Core data transmission unit with connection ID, flags, and payload
- ControlMessage: Enum for control frames (DoH, Ping/Pong, KeyRotation, Emergency)
- Authentication types:
AuthRequest,AuthResponse
Usage
use ;
// Create a data frame
let frame = ProxyFrame ;
// Control messages
let msg = Ping;
Frame Format
┌─────────────┬───────┬─────────────────────────────┐
│ conn_id (8B)│ flags │ payload (variable) │
└─────────────┴───────┴─────────────────────────────┘
License
MIT