use std::hash::Hash; use super::StatusPacket; #[derive(Hash, Clone, Debug)] pub struct ServerboundStatusRequestPacket {} impl ServerboundStatusRequestPacket { pub fn get(self) -> StatusPacket { StatusPacket::ServerboundStatusRequestPacket(self) } pub fn write(&self, _buf: &mut Vec) -> Result<(), std::io::Error> { panic!("ServerboundStatusRequestPacket::write not implemented") } pub async fn read( _buf: &mut T, ) -> Result { Err("ServerboundStatusRequestPacket::read not implemented".to_string()) } }