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§
Required Methods§
sourcefn handle_connection(&self, conn: TcpStream) -> ConnectionHandler
fn handle_connection(&self, conn: TcpStream) -> ConnectionHandler
Handles a single connection.