Module packet

Source

Traits§

DecodablePacket
EncodablePacket
A trait representing a packet that can be encoded, when passed as FooPacket or as &FooPacket. Different from Encodable in that it prevents you from accidentally passing a type intended to be encoded only as a part of a packet and doesn’t have a header, e.g. Vec<u8>.