ConnectionHandler

Trait ConnectionHandler 

Source
pub trait ConnectionHandler:
    Sized
    + Sync
    + Send {
    // Required methods
    fn handle_connection(&self, connection: Arc<Connection>);
    fn handle_disconnect(&self, connection: Arc<Connection>);
}

Required Methods§

Source

fn handle_connection(&self, connection: Arc<Connection>)

Source

fn handle_disconnect(&self, connection: Arc<Connection>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§