Struct naia_server::ServerConfig
source · pub struct ServerConfig {
pub connection: ConnectionConfig,
pub require_auth: bool,
pub ping: PingConfig,
}Expand description
Contains Config properties which will be used by the Server
Fields§
§connection: ConnectionConfigUsed to configure the connections with Clients
require_auth: boolDetermines whether to require that the Client send some auth message in order to connect.
ping: PingConfigConfiguration used to monitor the ping & jitter on the network
Trait Implementations§
source§impl Clone for ServerConfig
impl Clone for ServerConfig
source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more