blob: dce9b93a5c513f7f2bf55b434546deebac29ca03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
use std::hash::Hash;
use tokio::io::BufReader;
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<u8>) {
panic!("ServerboundStatusRequestPacket::write not implemented")
}
pub async fn read<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>(
_buf: &mut T,
) -> Result<StatusPacket, String> {
Err("ServerboundStatusRequestPacket::read not implemented".to_string())
}
}
|