Module config

Source
Expand description

Global configuration for this crate.

You may change the configuration by calling set_config function.

§Example

use tcp_server::config::{ServerConfig, set_config};

set_config(ServerConfig::default());

Structs§

ServerConfig
Global configuration.

Functions§

get_addr
A cheaper shortcut of
get_config
Gets the global configuration.
get_connect_sec
A cheaper shortcut of
get_idle_sec
A cheaper shortcut of
set_config
Sets the global configuration.