@@ -5,7 +5,7 @@ use crate::adapters::tcp::{TcpAdapter};
5
5
#[ cfg( feature = "tcp" ) ]
6
6
use crate :: adapters:: framed_tcp:: { FramedTcpAdapter } ;
7
7
#[ cfg( feature = "udp" ) ]
8
- use crate :: adapters:: udp:: { self , UdpAdapter } ;
8
+ use crate :: adapters:: udp:: { self , UdpAdapter , UdpConfig } ;
9
9
#[ cfg( feature = "websocket" ) ]
10
10
use crate :: adapters:: ws:: { self , WsAdapter } ;
11
11
@@ -163,7 +163,7 @@ pub enum TransportConnect {
163
163
#[ cfg( feature = "tcp" ) ]
164
164
FramedTcp ,
165
165
#[ cfg( feature = "udp" ) ]
166
- Udp ,
166
+ Udp ( UdpConfig ) ,
167
167
#[ cfg( feature = "websocket" ) ]
168
168
Ws ,
169
169
}
@@ -176,7 +176,7 @@ impl TransportConnect {
176
176
#[ cfg( feature = "tcp" ) ]
177
177
Self :: FramedTcp => Transport :: FramedTcp ,
178
178
#[ cfg( feature = "udp" ) ]
179
- Self :: Udp => Transport :: Udp ,
179
+ Self :: Udp ( _ ) => Transport :: Udp ,
180
180
#[ cfg( feature = "websocket" ) ]
181
181
Self :: Ws => Transport :: Ws ,
182
182
} ;
@@ -193,7 +193,7 @@ impl From<Transport> for TransportConnect {
193
193
#[ cfg( feature = "tcp" ) ]
194
194
Transport :: FramedTcp => Self :: FramedTcp ,
195
195
#[ cfg( feature = "udp" ) ]
196
- Transport :: Udp => Self :: Udp ,
196
+ Transport :: Udp => Self :: Udp ( UdpConfig :: default ( ) ) ,
197
197
#[ cfg( feature = "websocket" ) ]
198
198
Transport :: Ws => Self :: Ws ,
199
199
}
@@ -206,7 +206,7 @@ pub enum TransportListen {
206
206
#[ cfg( feature = "tcp" ) ]
207
207
FramedTcp ,
208
208
#[ cfg( feature = "udp" ) ]
209
- Udp ,
209
+ Udp ( UdpConfig ) ,
210
210
#[ cfg( feature = "websocket" ) ]
211
211
Ws ,
212
212
}
@@ -219,7 +219,7 @@ impl TransportListen {
219
219
#[ cfg( feature = "tcp" ) ]
220
220
Self :: FramedTcp => Transport :: FramedTcp ,
221
221
#[ cfg( feature = "udp" ) ]
222
- Self :: Udp => Transport :: Udp ,
222
+ Self :: Udp ( _ ) => Transport :: Udp ,
223
223
#[ cfg( feature = "websocket" ) ]
224
224
Self :: Ws => Transport :: Ws ,
225
225
} ;
@@ -236,7 +236,7 @@ impl From<Transport> for TransportListen {
236
236
#[ cfg( feature = "tcp" ) ]
237
237
Transport :: FramedTcp => Self :: FramedTcp ,
238
238
#[ cfg( feature = "udp" ) ]
239
- Transport :: Udp => Self :: Udp ,
239
+ Transport :: Udp => Self :: Udp ( UdpConfig :: default ( ) ) ,
240
240
#[ cfg( feature = "websocket" ) ]
241
241
Transport :: Ws => Self :: Ws ,
242
242
}
0 commit comments