Function set_config

Source
pub fn set_config(config: ServerConfig)
Expand description

Sets the global configuration.

This function is recommended to only be called once during initialization.

ยงExample

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

set_config(ServerConfig::default());