Skip to main content

ClientMessage

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§