pub trait Handler:
Send
+ Sync
+ 'static {
// Required methods
fn handle<'a>(
&'a self,
connection: ConnectionHandle,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>;
fn clone_box(&self) -> Box<dyn Handler>;
}Expand description
Trait for handling WebSocket connections