Trait mz_ore::server::Server

source ·
pub trait Server {
    const NAME: &'static str;

    // Required method
    fn handle_connection(&self, conn: TcpStream) -> ConnectionHandler;
}
Expand description

A server handles incoming network connections.

Required Associated Constants§

source

const NAME: &'static str

Returns the name of the connection handler for use in e.g. log messages.

Required Methods§

source

fn handle_connection(&self, conn: TcpStream) -> ConnectionHandler

Handles a single connection.

Implementors§