@@ -9,7 +9,7 @@ use crate::{io, net};
99/// Os-specific extensions for [`TcpStream`]
1010///
1111/// [`TcpStream`]: net::TcpStream
12- #[ unstable ( feature = "tcp_quickack" , issue = "96256 " ) ]
12+ #[ stable ( feature = "tcp_quickack" , since = "CURRENT_RUSTC_VERSION " ) ]
1313pub trait TcpStreamExt : Sealed {
1414 /// Enable or disable `TCP_QUICKACK`.
1515 ///
@@ -23,15 +23,14 @@ pub trait TcpStreamExt: Sealed {
2323 /// # Examples
2424 ///
2525 /// ```no_run
26- /// #![feature(tcp_quickack)]
2726 /// use std::net::TcpStream;
2827 /// use std::os::linux::net::TcpStreamExt;
2928 ///
3029 /// let stream = TcpStream::connect("127.0.0.1:8080")
3130 /// .expect("Couldn't connect to the server...");
3231 /// stream.set_quickack(true).expect("set_quickack call failed");
3332 /// ```
34- #[ unstable ( feature = "tcp_quickack" , issue = "96256 " ) ]
33+ #[ stable ( feature = "tcp_quickack" , since = "CURRENT_RUSTC_VERSION " ) ]
3534 fn set_quickack ( & self , quickack : bool ) -> io:: Result < ( ) > ;
3635
3736 /// Gets the value of the `TCP_QUICKACK` option on this socket.
@@ -41,7 +40,6 @@ pub trait TcpStreamExt: Sealed {
4140 /// # Examples
4241 ///
4342 /// ```no_run
44- /// #![feature(tcp_quickack)]
4543 /// use std::net::TcpStream;
4644 /// use std::os::linux::net::TcpStreamExt;
4745 ///
@@ -50,7 +48,7 @@ pub trait TcpStreamExt: Sealed {
5048 /// stream.set_quickack(true).expect("set_quickack call failed");
5149 /// assert_eq!(stream.quickack().unwrap_or(false), true);
5250 /// ```
53- #[ unstable ( feature = "tcp_quickack" , issue = "96256 " ) ]
51+ #[ stable ( feature = "tcp_quickack" , since = "CURRENT_RUSTC_VERSION " ) ]
5452 fn quickack ( & self ) -> io:: Result < bool > ;
5553
5654 /// A socket listener will be awakened solely when data arrives.
@@ -99,10 +97,10 @@ pub trait TcpStreamExt: Sealed {
9997 fn deferaccept ( & self ) -> io:: Result < u32 > ;
10098}
10199
102- #[ unstable ( feature = "tcp_quickack" , issue = "96256 " ) ]
100+ #[ stable ( feature = "tcp_quickack" , since = "CURRENT_RUSTC_VERSION " ) ]
103101impl Sealed for net:: TcpStream { }
104102
105- #[ unstable ( feature = "tcp_quickack" , issue = "96256 " ) ]
103+ #[ stable ( feature = "tcp_quickack" , since = "CURRENT_RUSTC_VERSION " ) ]
106104impl TcpStreamExt for net:: TcpStream {
107105 fn set_quickack ( & self , quickack : bool ) -> io:: Result < ( ) > {
108106 self . as_inner ( ) . as_inner ( ) . set_quickack ( quickack)
0 commit comments