File tree 2 files changed +2
-0
lines changed
library/std/src/os/windows/io
2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ impl OwnedHandle {
188
188
impl BorrowedHandle < ' _ > {
189
189
/// Creates a new `OwnedHandle` instance that shares the same underlying
190
190
/// object as the existing `BorrowedHandle` instance.
191
+ #[ stable( feature = "io_safety" , since = "1.63.0" ) ]
191
192
pub fn try_clone_to_owned ( & self ) -> crate :: io:: Result < OwnedHandle > {
192
193
self . duplicate ( 0 , false , c:: DUPLICATE_SAME_ACCESS )
193
194
}
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ impl OwnedSocket {
107
107
impl BorrowedSocket < ' _ > {
108
108
/// Creates a new `OwnedSocket` instance that shares the same underlying
109
109
/// object as the existing `BorrowedSocket` instance.
110
+ #[ stable( feature = "io_safety" , since = "1.63.0" ) ]
110
111
pub fn try_clone_to_owned ( & self ) -> io:: Result < OwnedSocket > {
111
112
let mut info = unsafe { mem:: zeroed :: < c:: WSAPROTOCOL_INFO > ( ) } ;
112
113
let result = unsafe {
You can’t perform that action at this time.
0 commit comments