rconrs 0.2.1

Rust implementation of SRCDS RCON Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use num_derive::{FromPrimitive, ToPrimitive};

#[derive(PartialEq, Eq, Debug, Clone, Copy, Hash, FromPrimitive, ToPrimitive)]
pub enum RequestPacketType {
    ServerDataAuth = 3,
    ServerDataExecCommand = 2,
}

#[derive(PartialEq, Eq, Debug, Clone, Copy, Hash, FromPrimitive, ToPrimitive)]
pub enum ResponsePacketType {
    ServerDataAuthResponse = 2,
    ServerDataResponseValue = 0,
}