Traits§
- Decodable
Packet - Encodable
Packet - A trait representing a packet that can be encoded, when passed as
FooPacket
or as&FooPacket
. Different fromEncodable
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>
.