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§
- Server
Config - 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.