Trait ws::Factory
[−]
[src]
pub trait Factory { type Handler: Handler; fn connection_made(&mut self, Sender) -> Self::Handler; fn settings(&mut self) -> Settings { ... } fn on_shutdown(&mut self) { ... } }
A trait for creating new WebSocket handlers.
Associated Types
Required Methods
fn connection_made(&mut self, Sender) -> Self::Handler
Called when a TCP connection is made