rcon_client/
errors.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::Serialize;
use thiserror::Error;

/// Errors enum for project
#[derive(Error, Debug, Serialize)]
pub enum RCONError {
    /// Error with TCP connection
    #[error("TCP connection error: {0}")]
    TcpConnectionError(String),
    /// Error with types converting
    #[error("Error with types conversion: {0}")]
    TypeError(String),
}