File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ impl TcpKeepalive {
310
310
///
311
311
/// Some platforms specify this value in seconds, so sub-second
312
312
/// specifications may be omitted.
313
- pub fn with_time ( self , time : Duration ) -> Self {
313
+ pub const fn with_time ( self , time : Duration ) -> Self {
314
314
Self {
315
315
time : Some ( time) ,
316
316
..self
@@ -334,7 +334,7 @@ impl TcpKeepalive {
334
334
windows,
335
335
)
336
336
) ) ]
337
- pub fn with_interval ( self , interval : Duration ) -> Self {
337
+ pub const fn with_interval ( self , interval : Duration ) -> Self {
338
338
Self {
339
339
interval : Some ( interval) ,
340
340
..self
@@ -354,7 +354,7 @@ impl TcpKeepalive {
354
354
target_vendor = "apple" ,
355
355
)
356
356
) ) ]
357
- pub fn with_retries ( self , retries : u32 ) -> Self {
357
+ pub const fn with_retries ( self , retries : u32 ) -> Self {
358
358
Self {
359
359
retries : Some ( retries) ,
360
360
..self
You can’t perform that action at this time.
0 commit comments