pub fn send_packet<P: Packet + 'static>(player: &Player, packet: P) {
    player
        .network_sender
        .send(ServerToWorkerMessage::NotifyPacketReceived(Box::new(
            packet,
        )))
        .unwrap();
}
/// Sends a packet to the player.
Sends a packet to the player.
Sends a packet to the player .
pub fn send_packet<P: Packet + 'static>(player: &Player, packet: P) {
    player
        .network_sender
        .send(ServerToWorkerMessage::NotifyPacketReceived(Box::new(
            packet,
        )))
        .unwrap();
}
pub fn send_packet < P : Packet + ' static > ( player : & Player , packet : P ) { player . network_sender . send ( ServerToWorkerMessage :: NotifyPacketReceived ( Box :: new ( packet , ) ) ) . unwrap ( ) ; }
Sends a packet to the player.
Sends a packet to the player .
player
&Player
packet
P
player
&Player
packet
P