@@ -9,7 +9,7 @@ use crate::{io, net};
9
9
/// Os-specific extensions for [`TcpStream`]
10
10
///
11
11
/// [`TcpStream`]: net::TcpStream
12
- #[ unstable ( feature = "tcp_quickack" , issue = "96256 " ) ]
12
+ #[ stable ( feature = "tcp_quickack" , since = "CURRENT_RUSTC_VERSION " ) ]
13
13
pub trait TcpStreamExt : Sealed {
14
14
/// Enable or disable `TCP_QUICKACK`.
15
15
///
@@ -23,15 +23,14 @@ pub trait TcpStreamExt: Sealed {
23
23
/// # Examples
24
24
///
25
25
/// ```no_run
26
- /// #![feature(tcp_quickack)]
27
26
/// use std::net::TcpStream;
28
27
/// use std::os::linux::net::TcpStreamExt;
29
28
///
30
29
/// let stream = TcpStream::connect("127.0.0.1:8080")
31
30
/// .expect("Couldn't connect to the server...");
32
31
/// stream.set_quickack(true).expect("set_quickack call failed");
33
32
/// ```
34
- #[ unstable ( feature = "tcp_quickack" , issue = "96256 " ) ]
33
+ #[ stable ( feature = "tcp_quickack" , since = "CURRENT_RUSTC_VERSION " ) ]
35
34
fn set_quickack ( & self , quickack : bool ) -> io:: Result < ( ) > ;
36
35
37
36
/// Gets the value of the `TCP_QUICKACK` option on this socket.
@@ -41,7 +40,6 @@ pub trait TcpStreamExt: Sealed {
41
40
/// # Examples
42
41
///
43
42
/// ```no_run
44
- /// #![feature(tcp_quickack)]
45
43
/// use std::net::TcpStream;
46
44
/// use std::os::linux::net::TcpStreamExt;
47
45
///
@@ -50,7 +48,7 @@ pub trait TcpStreamExt: Sealed {
50
48
/// stream.set_quickack(true).expect("set_quickack call failed");
51
49
/// assert_eq!(stream.quickack().unwrap_or(false), true);
52
50
/// ```
53
- #[ unstable ( feature = "tcp_quickack" , issue = "96256 " ) ]
51
+ #[ stable ( feature = "tcp_quickack" , since = "CURRENT_RUSTC_VERSION " ) ]
54
52
fn quickack ( & self ) -> io:: Result < bool > ;
55
53
56
54
/// A socket listener will be awakened solely when data arrives.
@@ -99,10 +97,10 @@ pub trait TcpStreamExt: Sealed {
99
97
fn deferaccept ( & self ) -> io:: Result < u32 > ;
100
98
}
101
99
102
- #[ unstable ( feature = "tcp_quickack" , issue = "96256 " ) ]
100
+ #[ stable ( feature = "tcp_quickack" , since = "CURRENT_RUSTC_VERSION " ) ]
103
101
impl Sealed for net:: TcpStream { }
104
102
105
- #[ unstable ( feature = "tcp_quickack" , issue = "96256 " ) ]
103
+ #[ stable ( feature = "tcp_quickack" , since = "CURRENT_RUSTC_VERSION " ) ]
106
104
impl TcpStreamExt for net:: TcpStream {
107
105
fn set_quickack ( & self , quickack : bool ) -> io:: Result < ( ) > {
108
106
self . as_inner ( ) . as_inner ( ) . set_quickack ( quickack)
0 commit comments