Trait laminar::ConnectionMessenger[][src]

pub trait ConnectionMessenger<ReceiveEvent: Debug> {
    fn config(&self) -> &Config;
fn send_event(&mut self, address: &SocketAddr, event: ReceiveEvent);
fn send_packet(&mut self, address: &SocketAddr, payload: &[u8]); }

Allows connection to send packet, send event and get global configuration.

Required methods

fn config(&self) -> &Config[src]

Returns global configuration.

fn send_event(&mut self, address: &SocketAddr, event: ReceiveEvent)[src]

Sends a connection event.

fn send_packet(&mut self, address: &SocketAddr, payload: &[u8])[src]

Sends a packet.

Loading content...

Implementors

Loading content...