Expand description
Shared protocol definitions for WSCALL.
This crate contains the transport envelope, frame codec, encryption modes, and inline attachment model used by both the server and client crates.
Structs§
- Error
Payload - Standard error payload embedded in API responses and event acknowledgements.
- File
Attachment - Inline attachment carried alongside JSON params or event data.
- Frame
Codec - Encodes and decodes WSCALL binary frames.
- Packet
Envelope - Full transport envelope before frame encoding.
Enums§
- Encryption
Kind - Selects how the payload section of a frame is encoded.
- Message
Type - Distinguishes API messages from event messages inside a WSCALL frame.
- Packet
Body - JSON-level message body transported inside a WSCALL frame.
- Protocol
Error - Errors returned while encoding or decoding WSCALL frames.
Functions§
- decode_
frame - Helper for decoding a plaintext frame without constructing a custom codec.
- encode_
frame - Helper for encoding a plaintext frame without constructing a custom codec.