Function ping_server_with_connection
pub async fn ping_server_with_connection(
address: ServerAddress,
conn: Connection<ClientboundHandshakePacket, ServerboundHandshakePacket>,
) -> Result<ClientboundStatusResponse, PingError>
Expand description
Ping a Minecraft server after we’ve already created a Connection
.
The Connection
must still be in the handshake state (which is the state
it’s in immediately after it’s created).