BanchoPacketWrite

Trait BanchoPacketWrite 

Source
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>).

Required Methods§

Source

fn write_into_buf(self, buf: &mut Vec<u8>)

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

Provided Methods§

Source

fn into_packet(self) -> Vec<u8>
where Self: Sized,

Convert self into a bancho packet Vec<u8>.

Implementations on Foreign Types§

Source§

impl BanchoPacketWrite for &str

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for &[f32]

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for &[f64]

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for &[i8]

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for &[i16]

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for &[i32]

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for &[i64]

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for &[u8]

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for &[u16]

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for &[u32]

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for &[u64]

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Cow<'_, str>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for bool

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for f32

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for f64

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for i8

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for i16

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for i32

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for i64

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for u8

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for u16

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for u32

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for u64

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for String

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Vec<f32>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Vec<f64>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Vec<i8>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Vec<i16>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Vec<i32>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Vec<i64>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Vec<u8>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Vec<u16>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Vec<u32>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Source§

impl BanchoPacketWrite for Vec<u64>

Source§

fn write_into_buf(self, buf: &mut Vec<u8>)

Implementors§