Module config

Source
Expand description

Global configuration for this crate.

You may change the configuration by calling set_config function.

§Example

use tcp_handler::config::{Config, set_config};

set_config(Config::default());

Structs§

Config
Global configuration.

Functions§

get_compression
A cheaper shortcut of
get_config
Get the global configuration.
get_max_packet_size
A cheaper shortcut of
set_config
Set the global configuration.