Crate packet_encoding

Source
Expand description

Generic utilities for encoding/decoding packets.

Macros§

codable_as_bitmask
decodable_enum
Generates an enum value where each variant can be converted into a constant in the given raw_type.

Traits§

Decodable
A decodable type can be created from a byte buffer. The type returned is separate (copied) from the buffer once decoded.
Encodable
An encodable type can write itself into a byte buffer.