pub trait BanchoPacketWrite {
// Required method
fn write_into_buf(self, buf: &mut Vec<u8>);
// Provided method
fn into_packet(self) -> Vec<u8> ⓘ
where Self: Sized { ... }
}Expand description
BanchoPacketWrite is a trait used to convert rust internal data types to
bancho packets (Vec<u8>).