@@ -1139,21 +1139,11 @@ const fn into_linger(duration: Option<Duration>) -> sys::linger {
1139
1139
/// * Linux: <https://man7.org/linux/man-pages/man7/ip.7.html>
1140
1140
/// * Windows: <https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options>
1141
1141
impl 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
- }
1152
1142
/// Get the value of the `IP_HDRINCL` option on this socket.
1153
1143
///
1154
- /// For more information about this option, see [`set_header_included `].
1144
+ /// For more information about this option, see [`set_header_included_v4 `].
1155
1145
///
1156
- /// [`set_header_included `]: Socket::set_header_included
1146
+ /// [`set_header_included_v4 `]: Socket::set_header_included_v4
1157
1147
#[ cfg( all( feature = "all" , not( any( target_os = "redox" , target_os = "espidf" ) ) ) ) ]
1158
1148
#[ cfg_attr(
1159
1149
docsrs,
@@ -1166,21 +1156,6 @@ impl Socket {
1166
1156
}
1167
1157
}
1168
1158
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
-
1184
1159
/// Set the value of the `IP_HDRINCL` option on this socket.
1185
1160
///
1186
1161
/// If enabled, the user supplies an IP header in front of the user data.
@@ -1679,9 +1654,9 @@ impl Socket {
1679
1654
impl Socket {
1680
1655
/// Get the value of the `IP_HDRINCL` option on this socket.
1681
1656
///
1682
- /// For more information about this option, see [`set_header_included `].
1657
+ /// For more information about this option, see [`set_header_included_v6 `].
1683
1658
///
1684
- /// [`set_header_included `]: Socket::set_header_included
1659
+ /// [`set_header_included_v6 `]: Socket::set_header_included_v6
1685
1660
#[ cfg( all(
1686
1661
feature = "all" ,
1687
1662
not( any(
0 commit comments