diff --git a/src/socket.rs b/src/socket.rs index 698d3556..66b8420d 100644 --- a/src/socket.rs +++ b/src/socket.rs @@ -1139,21 +1139,11 @@ const fn into_linger(duration: Option) -> sys::linger { /// * Linux: /// * Windows: impl Socket { - /// This method is deprecated, use [`crate::Socket::header_included_v4`]. - #[cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))] - #[cfg_attr( - docsrs, - doc(cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))) - )] - #[deprecated = "Use `Socket::header_included_v4` instead"] - pub fn header_included(&self) -> io::Result { - self.header_included_v4() - } /// Get the value of the `IP_HDRINCL` option on this socket. /// - /// For more information about this option, see [`set_header_included`]. + /// For more information about this option, see [`set_header_included_v4`]. /// - /// [`set_header_included`]: Socket::set_header_included + /// [`set_header_included_v4`]: Socket::set_header_included_v4 #[cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))] #[cfg_attr( docsrs, @@ -1166,21 +1156,6 @@ impl Socket { } } - /// This method is deprecated, use [`crate::Socket::set_header_included_v4`]. - #[cfg_attr( - any(target_os = "fuchsia", target_os = "illumos", target_os = "solaris"), - allow(rustdoc::broken_intra_doc_links) - )] - #[cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))] - #[cfg_attr( - docsrs, - doc(cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))) - )] - #[deprecated = "Use `Socket::set_header_included_v4` instead"] - pub fn set_header_included(&self, included: bool) -> io::Result<()> { - self.set_header_included_v4(included) - } - /// Set the value of the `IP_HDRINCL` option on this socket. /// /// If enabled, the user supplies an IP header in front of the user data. @@ -1679,9 +1654,9 @@ impl Socket { impl Socket { /// Get the value of the `IP_HDRINCL` option on this socket. /// - /// For more information about this option, see [`set_header_included`]. + /// For more information about this option, see [`set_header_included_v6`]. /// - /// [`set_header_included`]: Socket::set_header_included + /// [`set_header_included_v6`]: Socket::set_header_included_v6 #[cfg(all( feature = "all", not(any(