@@ -1139,16 +1139,6 @@ 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 ///
11541144 /// For more information about this option, see [`set_header_included`].
@@ -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.
0 commit comments