diff options
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/ext/io.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libstd/sys/windows/ext/io.rs b/src/libstd/sys/windows/ext/io.rs index a203a23068e..9f10b0e8563 100644 --- a/src/libstd/sys/windows/ext/io.rs +++ b/src/libstd/sys/windows/ext/io.rs @@ -52,14 +52,14 @@ pub trait FromRawHandle { /// A trait to express the ability to consume an object and acquire ownership of /// its raw `HANDLE`. -#[unstable(feature = "into_raw_os", reason = "recently added API", - issue = "27797")] +#[stable(feature = "into_raw_os", since = "1.4.0")] pub trait IntoRawHandle { /// Consumes this object, returning the raw underlying handle. /// /// This function **transfers ownership** of the underlying handle to the /// caller. Callers are then the unique owners of the handle and must close /// it once it's no longer needed. + #[stable(feature = "into_raw_os", since = "1.4.0")] fn into_raw_handle(self) -> RawHandle; } @@ -78,6 +78,7 @@ impl FromRawHandle for fs::File { } } +#[stable(feature = "into_raw_os", since = "1.4.0")] impl IntoRawHandle for fs::File { fn into_raw_handle(self) -> RawHandle { self.into_inner().into_handle().into_raw() as *mut _ @@ -111,14 +112,14 @@ pub trait FromRawSocket { /// A trait to express the ability to consume an object and acquire ownership of /// its raw `SOCKET`. -#[unstable(feature = "into_raw_os", reason = "recently added API", - issue = "27797")] +#[stable(feature = "into_raw_os", since = "1.4.0")] pub trait IntoRawSocket { /// Consumes this object, returning the raw underlying socket. /// /// This function **transfers ownership** of the underlying socket to the /// caller. Callers are then the unique owners of the socket and must close /// it once it's no longer needed. + #[stable(feature = "into_raw_os", since = "1.4.0")] fn into_raw_socket(self) -> RawSocket; } @@ -163,18 +164,21 @@ impl FromRawSocket for net::UdpSocket { } } +#[stable(feature = "into_raw_os", since = "1.4.0")] impl IntoRawSocket for net::TcpStream { fn into_raw_socket(self) -> RawSocket { self.into_inner().into_socket().into_inner() } } +#[stable(feature = "into_raw_os", since = "1.4.0")] impl IntoRawSocket for net::TcpListener { fn into_raw_socket(self) -> RawSocket { self.into_inner().into_socket().into_inner() } } +#[stable(feature = "into_raw_os", since = "1.4.0")] impl IntoRawSocket for net::UdpSocket { fn into_raw_socket(self) -> RawSocket { self.into_inner().into_socket().into_inner() |
