rconrs 0.2.1

Rust implementation of SRCDS RCON Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

/// Errors for serialize/deserialize packets.
#[derive(Error, Debug)]
pub enum PacketError {
    /// Malformed packet error (wrong identifier, etc...)
    #[error("the packet is malformed")]
    MalformedPacketError,
}

/// Errors for client operation(authentication/execute_command).
#[derive(Error, Debug)]
pub enum ClientError {
    /// Authentication error (maybe password is wrong?)
    #[error("authentication failed")]
    AuthenticationError,
}