Trait mz_server_core::Server
source · pub trait Server {
const NAME: &'static str;
// Required method
fn handle_connection(&self, conn: Connection) -> ConnectionHandler;
}
Expand description
A server handles incoming network connections.
Required Associated Constants§
Required Methods§
sourcefn handle_connection(&self, conn: Connection) -> ConnectionHandler
fn handle_connection(&self, conn: Connection) -> ConnectionHandler
Handles a single connection.
Object Safety§
This trait is not object safe.