Expand description
A prelude for conveniently writing platform-specific code.
Includes all extension traits, and some important type definitions.
Structs§
- Borrowed
Handle - A borrowed handle.
- Borrowed
Socket - A borrowed socket.
- Handle
OrInvalid - FFI type for handles in return values or out parameters, where
INVALID_HANDLE_VALUE
is used as a sentry value to indicate errors, such as in the return value ofCreateFileW
. This usesrepr(transparent)
and has the representation of a host handle, so that it can be used in such FFI declarations. - Owned
Handle - An owned handle.
- Owned
Socket - An owned socket.
Traits§
- AsHandle
- A trait to borrow the handle from an underlying object.
- AsRaw
Handle - Extracts raw handles.
- AsRaw
Socket - Extracts raw sockets.
- AsSocket
- A trait to borrow the socket from an underlying object.
- FileExt
- Windows-specific extensions to
fs::File
. - From
RawHandle - Constructs I/O objects from raw handles.
- From
RawSocket - Creates I/O objects from raw sockets.
- Into
RawHandle - A trait to express the ability to consume an object and acquire ownership of
its raw
HANDLE
. - Into
RawSocket - A trait to express the ability to consume an object and acquire ownership of
its raw
SOCKET
. - Metadata
Ext - Windows-specific extensions to
fs::Metadata
. - Open
Options Ext - Windows-specific extensions to
fs::OpenOptions
. - OsStr
Ext - Windows-specific extensions to
OsStr
. - OsString
Ext - Windows-specific extensions to
OsString
.