Module config

Source
Expand description

Global configuration for this crate.

You may change the configuration by calling set_config function.

§Example

use tcp_client::config::{ClientConfig, set_config};

set_config(ClientConfig::default());

Structs§

ClientConfig
Global configuration.

Functions§

get_config
Get the global configuration.
get_connect_timeout
A cheaper shortcut of
get_receive_timeout
A cheaper shortcut of
set_config
Set the global configuration.