@@ -318,129 +318,129 @@ impl UdpSocket {
318
318
}
319
319
320
320
pub fn peer_addr ( & self ) -> io:: Result < SocketAddr > {
321
- match self . 0 { }
321
+ self . 0
322
322
}
323
323
324
324
pub fn socket_addr ( & self ) -> io:: Result < SocketAddr > {
325
- match self . 0 { }
325
+ self . 0
326
326
}
327
327
328
328
pub fn recv_from ( & self , _: & mut [ u8 ] ) -> io:: Result < ( usize , SocketAddr ) > {
329
- match self . 0 { }
329
+ self . 0
330
330
}
331
331
332
332
pub fn peek_from ( & self , _: & mut [ u8 ] ) -> io:: Result < ( usize , SocketAddr ) > {
333
- match self . 0 { }
333
+ self . 0
334
334
}
335
335
336
336
pub fn send_to ( & self , _: & [ u8 ] , _: & SocketAddr ) -> io:: Result < usize > {
337
- match self . 0 { }
337
+ self . 0
338
338
}
339
339
340
340
pub fn duplicate ( & self ) -> io:: Result < UdpSocket > {
341
- match self . 0 { }
341
+ self . 0
342
342
}
343
343
344
344
pub fn set_read_timeout ( & self , _: Option < Duration > ) -> io:: Result < ( ) > {
345
- match self . 0 { }
345
+ self . 0
346
346
}
347
347
348
348
pub fn set_write_timeout ( & self , _: Option < Duration > ) -> io:: Result < ( ) > {
349
- match self . 0 { }
349
+ self . 0
350
350
}
351
351
352
352
pub fn read_timeout ( & self ) -> io:: Result < Option < Duration > > {
353
- match self . 0 { }
353
+ self . 0
354
354
}
355
355
356
356
pub fn write_timeout ( & self ) -> io:: Result < Option < Duration > > {
357
- match self . 0 { }
357
+ self . 0
358
358
}
359
359
360
360
pub fn set_broadcast ( & self , _: bool ) -> io:: Result < ( ) > {
361
- match self . 0 { }
361
+ self . 0
362
362
}
363
363
364
364
pub fn broadcast ( & self ) -> io:: Result < bool > {
365
- match self . 0 { }
365
+ self . 0
366
366
}
367
367
368
368
pub fn set_multicast_loop_v4 ( & self , _: bool ) -> io:: Result < ( ) > {
369
- match self . 0 { }
369
+ self . 0
370
370
}
371
371
372
372
pub fn multicast_loop_v4 ( & self ) -> io:: Result < bool > {
373
- match self . 0 { }
373
+ self . 0
374
374
}
375
375
376
376
pub fn set_multicast_ttl_v4 ( & self , _: u32 ) -> io:: Result < ( ) > {
377
- match self . 0 { }
377
+ self . 0
378
378
}
379
379
380
380
pub fn multicast_ttl_v4 ( & self ) -> io:: Result < u32 > {
381
- match self . 0 { }
381
+ self . 0
382
382
}
383
383
384
384
pub fn set_multicast_loop_v6 ( & self , _: bool ) -> io:: Result < ( ) > {
385
- match self . 0 { }
385
+ self . 0
386
386
}
387
387
388
388
pub fn multicast_loop_v6 ( & self ) -> io:: Result < bool > {
389
- match self . 0 { }
389
+ self . 0
390
390
}
391
391
392
392
pub fn join_multicast_v4 ( & self , _: & Ipv4Addr , _: & Ipv4Addr ) -> io:: Result < ( ) > {
393
- match self . 0 { }
393
+ self . 0
394
394
}
395
395
396
396
pub fn join_multicast_v6 ( & self , _: & Ipv6Addr , _: u32 ) -> io:: Result < ( ) > {
397
- match self . 0 { }
397
+ self . 0
398
398
}
399
399
400
400
pub fn leave_multicast_v4 ( & self , _: & Ipv4Addr , _: & Ipv4Addr ) -> io:: Result < ( ) > {
401
- match self . 0 { }
401
+ self . 0
402
402
}
403
403
404
404
pub fn leave_multicast_v6 ( & self , _: & Ipv6Addr , _: u32 ) -> io:: Result < ( ) > {
405
- match self . 0 { }
405
+ self . 0
406
406
}
407
407
408
408
pub fn set_ttl ( & self , _: u32 ) -> io:: Result < ( ) > {
409
- match self . 0 { }
409
+ self . 0
410
410
}
411
411
412
412
pub fn ttl ( & self ) -> io:: Result < u32 > {
413
- match self . 0 { }
413
+ self . 0
414
414
}
415
415
416
416
pub fn take_error ( & self ) -> io:: Result < Option < io:: Error > > {
417
- match self . 0 { }
417
+ self . 0
418
418
}
419
419
420
420
pub fn set_nonblocking ( & self , _: bool ) -> io:: Result < ( ) > {
421
- match self . 0 { }
421
+ self . 0
422
422
}
423
423
424
424
pub fn recv ( & self , _: & mut [ u8 ] ) -> io:: Result < usize > {
425
- match self . 0 { }
425
+ self . 0
426
426
}
427
427
428
428
pub fn peek ( & self , _: & mut [ u8 ] ) -> io:: Result < usize > {
429
- match self . 0 { }
429
+ self . 0
430
430
}
431
431
432
432
pub fn send ( & self , _: & [ u8 ] ) -> io:: Result < usize > {
433
- match self . 0 { }
433
+ self . 0
434
434
}
435
435
436
436
pub fn connect ( & self , _: io:: Result < & SocketAddr > ) -> io:: Result < ( ) > {
437
- match self . 0 { }
437
+ self . 0
438
438
}
439
439
}
440
440
441
441
impl fmt:: Debug for UdpSocket {
442
442
fn fmt ( & self , _f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
443
- match self . 0 { }
443
+ self . 0
444
444
}
445
445
}
446
446
@@ -470,14 +470,14 @@ impl LookupHost {
470
470
}
471
471
472
472
pub fn port ( & self ) -> u16 {
473
- match self . 0 { }
473
+ self . 0
474
474
}
475
475
}
476
476
477
477
impl Iterator for LookupHost {
478
478
type Item = SocketAddr ;
479
479
fn next ( & mut self ) -> Option < SocketAddr > {
480
- match self . 0 { }
480
+ self . 0
481
481
}
482
482
}
483
483
0 commit comments