pub trait PacketHandler<P: PacketReadable + Send + Sync>:
Sized
+ Sync
+ Send {
// Required method
fn handle_packet(
&self,
connection: Arc<Connection>,
state: &mut PacketState,
packet: P,
);
}Required Methods§
fn handle_packet( &self, connection: Arc<Connection>, state: &mut PacketState, packet: P, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.