pub trait IntoConnectionHandler {
type Handler: ConnectionHandler;
// Required method
fn into_handler(self, connected: &Connected) -> Self::Handler;
}
Expand description
Prototype for a ConnectionHandler
.
Required Associated Types§
Sourcetype Handler: ConnectionHandler
type Handler: ConnectionHandler
The node handler.
Required Methods§
Sourcefn into_handler(self, connected: &Connected) -> Self::Handler
fn into_handler(self, connected: &Connected) -> Self::Handler
Builds the node handler.
The implementation is given a Connected
value that holds information about
the newly established connection for which a handler should be created.