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.
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.