bancho-packets-derive
Available attributies
ReadPacket: This derive macro will implement theBanchoPacketReadtrait for the struct.WritePacket: This derive macro will implement theBanchoPacketReadtrait for the struct.PacketLength: This derive macro will implement theBanchoPacketLengthtrait for the struct.
example
use ;
/// [`BanchoMessage`] is the message structure of the bancho client.
// Now we can use [`PayloadReader`] to read the [`BanchoMessage`] from bytes.
let mut reader = new;
let packet = reader.next.unwrap;
let mut payload_reader = new;
let message = payload_reader.;
println!;