pub trait ServiceHandler<T> {
// Required method
fn on_connection(&self, member: &str, server_end: T);
}
Expand description
A type which handles incoming service connections for a server.
Required Methods§
Sourcefn on_connection(&self, member: &str, server_end: T)
fn on_connection(&self, member: &str, server_end: T)
Handles a received connection request.
The service cannot handle more connection requests until on_connection
completes. If
on_connection
should handle requests in parallel, it should spawn a new async task and
return.