@@ -6,7 +6,7 @@ use crate::fs;
6
6
use crate :: io;
7
7
use crate :: net;
8
8
#[ cfg( doc) ]
9
- use crate :: os:: windows:: io:: { AsHandle , AsSocket , FromHandle , FromSocket , IntoHandle , IntoSocket } ;
9
+ use crate :: os:: windows:: io:: { AsHandle , AsSocket } ;
10
10
use crate :: os:: windows:: io:: { OwnedHandle , OwnedSocket } ;
11
11
use crate :: os:: windows:: raw;
12
12
use crate :: sys;
@@ -48,8 +48,9 @@ pub trait FromRawHandle {
48
48
/// will take responsibility for closing it when the object goes out of
49
49
/// scope.
50
50
///
51
- /// However, consuming ownership is not strictly required. See
52
- /// [`FromHandle::from_handle`] for an API which strictly consumes ownership.
51
+ /// However, consuming ownership is not strictly required. Use a
52
+ /// `From<OwnedHandle>::from` implementation for an API which strictly
53
+ /// consumes ownership.
53
54
///
54
55
/// # Safety
55
56
///
@@ -79,8 +80,9 @@ pub trait IntoRawHandle {
79
80
/// handle to the caller. When used in this way, callers are then the unique
80
81
/// owners of the handle and must close it once it's no longer needed.
81
82
///
82
- /// However, transferring ownership is not strictly required. See
83
- /// [`IntoHandle::into_handle`] for an API which strictly transfers ownership.
83
+ /// However, transferring ownership is not strictly required. Use a
84
+ /// `Into<OwnedHandle>::into` implementation for an API which strictly
85
+ /// transfers ownership.
84
86
#[ stable( feature = "into_raw_os" , since = "1.4.0" ) ]
85
87
fn into_raw_handle ( self ) -> RawHandle ;
86
88
}
@@ -181,8 +183,9 @@ pub trait FromRawSocket {
181
183
/// will take responsibility for closing it when the object goes out of
182
184
/// scope.
183
185
///
184
- /// However, consuming ownership is not strictly required. See
185
- /// [`FromSocket::from_socket`] for an API which strictly consumes ownership.
186
+ /// However, consuming ownership is not strictly required. Use a
187
+ /// `From<OwnedSocket>::from` implementation for an API which strictly
188
+ /// consumes ownership.
186
189
///
187
190
/// # Safety
188
191
///
@@ -205,8 +208,9 @@ pub trait IntoRawSocket {
205
208
/// socket to the caller. When used in this way, callers are then the unique
206
209
/// owners of the socket and must close it once it's no longer needed.
207
210
///
208
- /// However, transferring ownership is not strictly required. See
209
- /// [`IntoSocket::into_socket`] for an API which strictly transfers ownership.
211
+ /// However, transferring ownership is not strictly required. Use a
212
+ /// `Into<OwnedSocket>::into` implementation for an API which strictly
213
+ /// transfers ownership.
210
214
#[ stable( feature = "into_raw_os" , since = "1.4.0" ) ]
211
215
fn into_raw_socket ( self ) -> RawSocket ;
212
216
}
0 commit comments