Expand description
GenCP: generic control protocol encode/decode (transport-agnostic).
Structs§
- AckHeader
- Header for GenCP acknowledgements.
- Command
Flags - Flags that can be set on a GenCP command packet.
- Command
Header - Command header for GenCP requests.
- GenCp
Ack - GenCP acknowledgement packet.
- GenCp
Cmd - GenCP command packet.
Enums§
- GenCp
Error - Errors that can occur when dealing with GenCP packets.
- OpCode
- GenCP operation codes supported by this crate.
- Status
Code - Status codes returned by GenCP acknowledgements.
Constants§
- HEADER_
SIZE - Size of the GenCP header (in bytes).
Functions§
- decode_
ack - Decode a GenCP acknowledgement from raw bytes.
- encode_
cmd - Encode a GenCP command into the on-the-wire representation.