Closed
Description
Motivation
I believe it would be more consistent with rust to make use of the resources in std::os::windows
. This includes std::os::windows::raw::HANDLE
and std::os::windows::raw::SOCKET
.
This would make use of the standard library with windows-rs crate easier by making use of compatibility between them.
Drawbacks
None that I can see yet.
Alternatives
A possible alternative is to take the current HANDLE
in windows-rs and apply a trait to it such as std::os::windows::io::AsRawHandle
to convert back to the standard library types.
Additional context
This is related to #760.