@@ -593,16 +593,16 @@ impl TcpStream {
593
593
///
594
594
/// let stream = TcpStream::connect("127.0.0.1:54321")
595
595
/// .expect("Couldn't connect to the server...");
596
- /// stream.set_multicast_hlim_v6 (88).expect("set_hop_limit_v6 call failed");
596
+ /// stream.set_multicast_hop_limit_v6 (88).expect("set_multicast_hop_limit_v6 call failed");
597
597
/// ```
598
598
#[ unstable( feature = "ipv6_hop_limit" , issue = "47727" ) ]
599
- pub fn set_multicast_hlim_v6 ( & self , limit : u32 ) -> io:: Result < ( ) > {
600
- self . 0 . set_multicast_hlim_v6 ( limit)
599
+ pub fn set_multicast_hop_limit_v6 ( & self , limit : u32 ) -> io:: Result < ( ) > {
600
+ self . 0 . set_multicast_hop_limit_v6 ( limit)
601
601
}
602
602
603
603
/// Gets the value of the `IPV6_MULTICAST_HOPS` option on this socket.
604
604
///
605
- /// For more information about this option, see [`TcpStream::set_multicast_hlim_v6 `].
605
+ /// For more information about this option, see [`TcpStream::set_multicast_hop_limit_v6 `].
606
606
///
607
607
/// # Examples
608
608
///
@@ -612,12 +612,12 @@ impl TcpStream {
612
612
///
613
613
/// let stream = TcpStream::connect("127.0.0.1:54321")
614
614
/// .expect("Couldn't connect to the server...");
615
- /// stream.set_multicast_hlim_v6 (88).expect("set_hop_limit_v6 call failed");
616
- /// assert_eq!(stream.multicast_hlim_v6 ().unwrap(), 88);
615
+ /// stream.set_multicast_hop_limit_v6 (88).expect("set_multicast_hop_limit_v6 call failed");
616
+ /// assert_eq!(stream.multicast_hop_limit_v6 ().unwrap(), 88);
617
617
/// ```
618
618
#[ unstable( feature = "ipv6_hop_limit" , issue = "47727" ) ]
619
- pub fn multicast_hlim_v6 ( & self ) -> io:: Result < u32 > {
620
- self . 0 . multicast_hlim_v6 ( )
619
+ pub fn multicast_hop_limit_v6 ( & self ) -> io:: Result < u32 > {
620
+ self . 0 . multicast_hop_limit_v6 ( )
621
621
}
622
622
623
623
/// Gets the value of the `SO_ERROR` option on this socket.
@@ -1044,16 +1044,16 @@ impl TcpListener {
1044
1044
/// use std::net::TcpListener;
1045
1045
///
1046
1046
/// let listener = TcpListener::bind("127.0.0.1:54321").unwrap();
1047
- /// listener.set_multicast_hlim_v6 (88).expect("set_hop_limit_v6 call failed");
1047
+ /// listener.set_multicast_hop_limit_v6 (88).expect("set_multicast_hop_limit_v6 call failed");
1048
1048
/// ```
1049
1049
#[ unstable( feature = "ipv6_hop_limit" , issue = "47727" ) ]
1050
- pub fn set_multicast_hlim_v6 ( & self , limit : u32 ) -> io:: Result < ( ) > {
1051
- self . 0 . set_multicast_hlim_v6 ( limit)
1050
+ pub fn set_multicast_hop_limit_v6 ( & self , limit : u32 ) -> io:: Result < ( ) > {
1051
+ self . 0 . set_multicast_hop_limit_v6 ( limit)
1052
1052
}
1053
1053
1054
1054
/// Gets the value of the `IPV6_MULTICAST_HOPS` option on this socket.
1055
1055
///
1056
- /// For more information about this option, see [`TcpListener::set_multicast_hlim_v6 `].
1056
+ /// For more information about this option, see [`TcpListener::set_multicast_hop_limit_v6 `].
1057
1057
///
1058
1058
/// # Examples
1059
1059
///
@@ -1062,12 +1062,12 @@ impl TcpListener {
1062
1062
/// use std::net::TcpListener;
1063
1063
///
1064
1064
/// let listener = TcpListener::bind("127.0.0.1:54321").unwrap();
1065
- /// listener.set_multicast_hlim_v6 (88).expect("set_hop_limit_v6 call failed");
1066
- /// assert_eq!(listener.multicast_hlim_v6 ().unwrap(), 88);
1065
+ /// listener.set_multicast_hop_limit_v6 (88).expect("set_multicast_hop_limit_v6 call failed");
1066
+ /// assert_eq!(listener.multicast_hop_limit_v6 ().unwrap(), 88);
1067
1067
/// ```
1068
1068
#[ unstable( feature = "ipv6_hop_limit" , issue = "47727" ) ]
1069
- pub fn multicast_hlim_v6 ( & self ) -> io:: Result < u32 > {
1070
- self . 0 . multicast_hlim_v6 ( )
1069
+ pub fn multicast_hop_limit_v6 ( & self ) -> io:: Result < u32 > {
1070
+ self . 0 . multicast_hop_limit_v6 ( )
1071
1071
}
1072
1072
1073
1073
#[ stable( feature = "net2_mutators" , since = "1.9.0" ) ]
0 commit comments