@@ -1139,21 +1139,11 @@ const fn into_linger(duration: Option<Duration>) -> sys::linger {
11391139/// * Linux: <https://man7.org/linux/man-pages/man7/ip.7.html>
11401140/// * Windows: <https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options>
11411141impl Socket {
1142- /// This method is deprecated, use [`crate::Socket::header_included_v4`].
1143- #[ cfg( all( feature = "all" , not( any( target_os = "redox" , target_os = "espidf" ) ) ) ) ]
1144- #[ cfg_attr(
1145- docsrs,
1146- doc( cfg( all( feature = "all" , not( any( target_os = "redox" , target_os = "espidf" ) ) ) ) )
1147- ) ]
1148- #[ deprecated = "Use `Socket::header_included_v4` instead" ]
1149- pub fn header_included ( & self ) -> io:: Result < bool > {
1150- self . header_included_v4 ( )
1151- }
11521142 /// Get the value of the `IP_HDRINCL` option on this socket.
11531143 ///
1154- /// For more information about this option, see [`set_header_included `].
1144+ /// For more information about this option, see [`set_header_included_v4 `].
11551145 ///
1156- /// [`set_header_included `]: Socket::set_header_included
1146+ /// [`set_header_included_v4 `]: Socket::set_header_included_v4
11571147 #[ cfg( all( feature = "all" , not( any( target_os = "redox" , target_os = "espidf" ) ) ) ) ]
11581148 #[ cfg_attr(
11591149 docsrs,
@@ -1166,21 +1156,6 @@ impl Socket {
11661156 }
11671157 }
11681158
1169- /// This method is deprecated, use [`crate::Socket::set_header_included_v4`].
1170- #[ cfg_attr(
1171- any( target_os = "fuchsia" , target_os = "illumos" , target_os = "solaris" ) ,
1172- allow( rustdoc:: broken_intra_doc_links)
1173- ) ]
1174- #[ cfg( all( feature = "all" , not( any( target_os = "redox" , target_os = "espidf" ) ) ) ) ]
1175- #[ cfg_attr(
1176- docsrs,
1177- doc( cfg( all( feature = "all" , not( any( target_os = "redox" , target_os = "espidf" ) ) ) ) )
1178- ) ]
1179- #[ deprecated = "Use `Socket::set_header_included_v4` instead" ]
1180- pub fn set_header_included ( & self , included : bool ) -> io:: Result < ( ) > {
1181- self . set_header_included_v4 ( included)
1182- }
1183-
11841159 /// Set the value of the `IP_HDRINCL` option on this socket.
11851160 ///
11861161 /// If enabled, the user supplies an IP header in front of the user data.
@@ -1679,9 +1654,9 @@ impl Socket {
16791654impl Socket {
16801655 /// Get the value of the `IP_HDRINCL` option on this socket.
16811656 ///
1682- /// For more information about this option, see [`set_header_included `].
1657+ /// For more information about this option, see [`set_header_included_v6 `].
16831658 ///
1684- /// [`set_header_included `]: Socket::set_header_included
1659+ /// [`set_header_included_v6 `]: Socket::set_header_included_v6
16851660 #[ cfg( all(
16861661 feature = "all" ,
16871662 not( any(
0 commit comments