File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,10 @@ impl TcpStream {
164
164
/// Returns the read timeout of this socket.
165
165
///
166
166
/// If the timeout is `None`, then `read` calls will block indefinitely.
167
+ ///
168
+ /// # Note
169
+ ///
170
+ /// Some platforms do not provide access to the current timeout.
167
171
#[ unstable( feature = "socket_timeout" , reason = "RFC 1047 - recently added" ) ]
168
172
pub fn read_timeout ( & self ) -> io:: Result < Option < Duration > > {
169
173
self . 0 . read_timeout ( )
@@ -172,6 +176,10 @@ impl TcpStream {
172
176
/// Returns the write timeout of this socket.
173
177
///
174
178
/// If the timeout is `None`, then `write` calls will block indefinitely.
179
+ ///
180
+ /// # Note
181
+ ///
182
+ /// Some platforms do not provide access to the current timeout.
175
183
#[ unstable( feature = "socket_timeout" , reason = "RFC 1047 - recently added" ) ]
176
184
pub fn write_timeout ( & self ) -> io:: Result < Option < Duration > > {
177
185
self . 0 . write_timeout ( )
You can’t perform that action at this time.
0 commit comments