We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd3b1ed commit 8f43ba9Copy full SHA for 8f43ba9
1 file changed
src/lib.rs
@@ -63,8 +63,9 @@ impl Default for IpStackConfig {
63
64
impl IpStackConfig {
65
/// Set custom TCP configuration
66
- pub fn with_tcp_config(&mut self, config: TcpConfig) {
+ pub fn with_tcp_config(&mut self, config: TcpConfig) -> &mut Self {
67
self.tcp_config = Arc::new(config);
68
+ self
69
}
70
pub fn udp_timeout(&mut self, timeout: Duration) -> &mut Self {
71
self.udp_timeout = timeout;
0 commit comments