Module unsafe_io::os::windows[][src]

The RawHandleOrSocket type and accompanying AsRawHandleOrSocket, IntoRawHandleOrSocket, and FromRawHandleOrSocket traits. These provide minimal Windows analogs for the Posix-ish RawFd type and accompanying AsRawFd, IntoRawFd, and FromRawFd traits.

These types are only defined on Windows and do not requre implementors to assert that they own their resources. See UnsafeHandle and accompanying AsUnsafeHandle, IntoRawHandle, and FromUnsafeHandle traits for platform-independent interfaces which do include ownership assertions.

Structs

RawHandleOrSocket

A Windows analog for the Posix-ish AsRawFd type. Unlike Posix-ish platforms which have a single type for files and sockets, Windows has distinct types, RawHandle and RawSocket; this type behaves like an enum which can hold either.

Traits

AsRawHandleOrSocket

Like AsRawHandle and AsRawSocket, but implementable by types which can implement either one.

AsRawReadWriteHandleOrSocket

Like AsRawHandleOrSocket, but for types which may have one or two handles or sockets, for reading and writing.

FromRawHandleOrSocket

Like FromRawHandle and FromRawSocket, but implementable by types which can implement both.

IntoRawHandleOrSocket

Like IntoRawHandle and IntoRawSocket, but implementable by types which can implement either one.