pub trait IntoPacket { // Required method fn into_packet(self) -> Result<Packet, Error>; }
Allow types implementing BinWrite to be easily converted to a Packet.
BinWrite
Packet
Convert the current type to a Packet.