@@ -2428,7 +2428,7 @@ impl crate::Socket {
2428
2428
/// [`connect`]: crate::Socket::connect
2429
2429
/// [`bind`]: crate::Socket::bind
2430
2430
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2431
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2431
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2432
2432
pub fn set_dccp_service ( & self , code : u32 ) -> io:: Result < ( ) > {
2433
2433
unsafe {
2434
2434
setsockopt (
@@ -2446,7 +2446,7 @@ impl crate::Socket {
2446
2446
///
2447
2447
/// [`set_dccp_service`]: crate::Socket::set_dccp_service
2448
2448
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2449
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2449
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2450
2450
pub fn dccp_service ( & self ) -> io:: Result < u32 > {
2451
2451
unsafe { getsockopt ( self . as_raw ( ) , libc:: SOL_DCCP , libc:: DCCP_SOCKOPT_SERVICE ) }
2452
2452
}
@@ -2455,7 +2455,7 @@ impl crate::Socket {
2455
2455
///
2456
2456
/// This option sets both the TX and RX CCIDs at the same time.
2457
2457
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2458
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2458
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2459
2459
pub fn set_dccp_ccid ( & self , ccid : u8 ) -> io:: Result < ( ) > {
2460
2460
unsafe { setsockopt ( self . as_raw ( ) , libc:: SOL_DCCP , libc:: DCCP_SOCKOPT_CCID , ccid) }
2461
2461
}
@@ -2466,7 +2466,7 @@ impl crate::Socket {
2466
2466
///
2467
2467
/// [`set_dccp_ccid`]: crate::Socket::set_dccp_ccid
2468
2468
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2469
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2469
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2470
2470
pub fn dccp_tx_ccid ( & self ) -> io:: Result < u32 > {
2471
2471
unsafe { getsockopt ( self . as_raw ( ) , libc:: SOL_DCCP , libc:: DCCP_SOCKOPT_TX_CCID ) }
2472
2472
}
@@ -2477,7 +2477,7 @@ impl crate::Socket {
2477
2477
///
2478
2478
/// [`set_dccp_ccid`]: crate::Socket::set_dccp_ccid
2479
2479
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2480
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2480
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2481
2481
pub fn dccp_xx_ccid ( & self ) -> io:: Result < u32 > {
2482
2482
unsafe { getsockopt ( self . as_raw ( ) , libc:: SOL_DCCP , libc:: DCCP_SOCKOPT_RX_CCID ) }
2483
2483
}
@@ -2487,7 +2487,7 @@ impl crate::Socket {
2487
2487
/// Enables a listening socket to hold timewait state when closing the
2488
2488
/// connection. This option must be set after `accept` returns.
2489
2489
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2490
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2490
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2491
2491
pub fn set_dccp_server_timewait ( & self , hold_timewait : bool ) -> io:: Result < ( ) > {
2492
2492
unsafe {
2493
2493
setsockopt (
@@ -2505,7 +2505,7 @@ impl crate::Socket {
2505
2505
///
2506
2506
/// [`set_dccp_server_timewait`]: crate::Socket::set_dccp_server_timewait
2507
2507
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2508
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2508
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2509
2509
pub fn dccp_server_timewait ( & self ) -> io:: Result < bool > {
2510
2510
unsafe {
2511
2511
getsockopt (
@@ -2524,7 +2524,7 @@ impl crate::Socket {
2524
2524
/// accepted by the receiver. Hence, when using this feature on the sender,
2525
2525
/// it must be enabled at the receiver too, with suitable choice of CsCov.
2526
2526
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2527
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2527
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2528
2528
pub fn set_dccp_send_cscov ( & self , level : u32 ) -> io:: Result < ( ) > {
2529
2529
unsafe {
2530
2530
setsockopt (
@@ -2542,7 +2542,7 @@ impl crate::Socket {
2542
2542
///
2543
2543
/// [`set_dccp_send_cscov`]: crate::Socket::set_dccp_send_cscov
2544
2544
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2545
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2545
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2546
2546
pub fn dccp_send_cscov ( & self ) -> io:: Result < u32 > {
2547
2547
unsafe { getsockopt ( self . as_raw ( ) , libc:: SOL_DCCP , libc:: DCCP_SOCKOPT_SEND_CSCOV ) }
2548
2548
}
@@ -2553,7 +2553,7 @@ impl crate::Socket {
2553
2553
///
2554
2554
/// [`set_dccp_send_cscov`]: crate::Socket::set_dccp_send_cscov
2555
2555
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2556
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2556
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2557
2557
pub fn set_dccp_recv_cscov ( & self , level : u32 ) -> io:: Result < ( ) > {
2558
2558
unsafe {
2559
2559
setsockopt (
@@ -2571,7 +2571,7 @@ impl crate::Socket {
2571
2571
///
2572
2572
/// [`set_dccp_recv_cscov`]: crate::Socket::set_dccp_recv_cscov
2573
2573
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2574
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2574
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2575
2575
pub fn dccp_recv_cscov ( & self ) -> io:: Result < u32 > {
2576
2576
unsafe { getsockopt ( self . as_raw ( ) , libc:: SOL_DCCP , libc:: DCCP_SOCKOPT_RECV_CSCOV ) }
2577
2577
}
@@ -2581,7 +2581,7 @@ impl crate::Socket {
2581
2581
/// This option sets the maximum length of the output queue. A zero value is
2582
2582
/// interpreted as unbounded queue length.
2583
2583
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2584
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2584
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2585
2585
pub fn set_dccp_qpolicy_txqlen ( & self , length : u32 ) -> io:: Result < ( ) > {
2586
2586
unsafe {
2587
2587
setsockopt (
@@ -2599,7 +2599,7 @@ impl crate::Socket {
2599
2599
///
2600
2600
/// [`set_dccp_qpolicy_txqlen`]: crate::Socket::set_dccp_qpolicy_txqlen
2601
2601
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2602
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2602
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2603
2603
pub fn dccp_qpolicy_txqlen ( & self ) -> io:: Result < u32 > {
2604
2604
unsafe {
2605
2605
getsockopt (
@@ -2620,7 +2620,7 @@ impl crate::Socket {
2620
2620
///
2621
2621
/// [documentation]: https://www.kernel.org/doc/html/latest/networking/dccp.html
2622
2622
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2623
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2623
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2624
2624
pub fn dccp_available_ccids < const N : usize > ( & self ) -> io:: Result < CcidEndpoints < N > > {
2625
2625
let mut endpoints = [ 0 ; N ] ;
2626
2626
let mut length = endpoints. len ( ) as libc:: socklen_t ;
@@ -2639,7 +2639,7 @@ impl crate::Socket {
2639
2639
/// This option retrieves the current maximum packet size (application
2640
2640
/// payload size) in bytes.
2641
2641
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2642
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2642
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2643
2643
pub fn dccp_cur_mps ( & self ) -> io:: Result < u32 > {
2644
2644
unsafe {
2645
2645
getsockopt (
@@ -2653,15 +2653,15 @@ impl crate::Socket {
2653
2653
2654
2654
/// See [`Socket::dccp_available_ccids`].
2655
2655
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2656
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2656
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2657
2657
#[ derive( Debug ) ]
2658
2658
pub struct CcidEndpoints < const N : usize > {
2659
2659
endpoints : [ u8 ; N ] ,
2660
2660
length : u32 ,
2661
2661
}
2662
2662
2663
2663
#[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
2664
- #[ cfg_attr( docsrs, doc( cfg( feature = "all" , target_os = "linux" ) ) ) ]
2664
+ #[ cfg_attr( docsrs, doc( cfg( all ( feature = "all" , target_os = "linux" ) ) ) ) ]
2665
2665
impl < const N : usize > std:: ops:: Deref for CcidEndpoints < N > {
2666
2666
type Target = [ u8 ] ;
2667
2667
0 commit comments