You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
330 B

5 years ago
use serde_derive::Deserialize;
/// Server configuration
#[derive(Clone, Debug, Deserialize)]
pub struct Server {
/// IP address to listen on.
pub ip: String,
/// Port to listen on.
pub port: i64,
/// Max number of connected players.
pub connection_limit: usize,
/// Socket event capacity.
pub event_capacity: usize,
}