pub trait PacketHandler {
// Required methods
fn handle_request(&mut self, p: &Packet) -> Action;
fn handle_response(&mut self, p: &Packet) -> Action;
}
Expand description
Packet handlers need to implement this trait
pub trait PacketHandler {
// Required methods
fn handle_request(&mut self, p: &Packet) -> Action;
fn handle_response(&mut self, p: &Packet) -> Action;
}
Packet handlers need to implement this trait