Crate genicp

Crate genicp 

Source
Expand description

GenCP: generic control protocol encode/decode (transport-agnostic).

Structs§

AckHeader
Header for GenCP acknowledgements.
CommandFlags
Flags that can be set on a GenCP command packet.
CommandHeader
Command header for GenCP requests.
GenCpAck
GenCP acknowledgement packet.
GenCpCmd
GenCP command packet.

Enums§

GenCpError
Errors that can occur when dealing with GenCP packets.
OpCode
GenCP operation codes supported by this crate.
StatusCode
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.