pub trait StateHandler: 'static {
// Provided method
fn new_client(&mut self, client: &Rc<Client>) { ... }
}Expand description
A handler for events emitted by a State.
Provided Methods§
Sourcefn new_client(&mut self, client: &Rc<Client>)
fn new_client(&mut self, client: &Rc<Client>)
A new client has connected.
This event is not emitted if the connection is created explicitly via
State::connect or State::add_client.