pub fn assert_disconnected(player: &Player) {
    let mut disconnected = false;
    for packet in received_packets(player, None) {
        if packet.ty() == PacketType::DisconnectPlay {
            disconnected = true;
        }
    }

    assert!(disconnected);
}
/// Asserts that a player was disconnected, panicking if not.
Asserts that a player was disconnected, panicking if not.
Asserts that a player was disconnected panicking if not .
pub fn assert_disconnected(player: &Player) {
    let mut disconnected = false;
    for packet in received_packets(player, None) {
        if packet.ty() == PacketType::DisconnectPlay {
            disconnected = true;
        }
    }
    assert!(disconnected);
}
pub fn assert_disconnected ( player : & Player ) { let mut disconnected = false ; for packet in received_packets ( player , None ) { if packet . ty ( ) == PacketType :: DisconnectPlay { disconnected = true ; } } assert ! ( disconnected ) ; }
Asserts that a player was disconnected, panicking if not.
Asserts that a player was disconnected panicking if not .
player
&Player
player
&Player