pub trait BanchoPacketWrite {
    fn write_buf(self, buf: &mut Vec<u8>);

    fn as_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>).

Required Methods§

Convert self into a bancho packet and write it into buf Vec<u8>.

Provided Methods§

Convert self into a bancho packet Vec<u8>.

Implementations on Foreign Types§

Implementors§