Trait ClientMessage

Source
pub trait ClientMessage: Send {
    // Required method
    fn encode(&self, buf: &mut BytesMut);
}
Expand description

Trait representing an NT message/packet headed Client –> Server

Required Methods§

Source

fn encode(&self, buf: &mut BytesMut)

Encodes Self into the given buf

Implementations on Foreign Types§

Source§

impl ClientMessage for String

Source§

fn encode(&self, buf: &mut BytesMut)

Source§

impl ClientMessage for Vec<u8>

Source§

fn encode(&self, buf: &mut BytesMut)

Source§

impl<T> ClientMessage for Vec<T>
where T: ClientMessage,

Source§

fn encode(&self, buf: &mut BytesMut)

Implementors§