Module boolean_enums::lstd::os::windows::prelude

1.0.0 · source ·
Available on Windows only.
Expand description

A prelude for conveniently writing platform-specific code.

Includes all extension traits, and some important type definitions.

Structs

A borrowed handle.
A borrowed socket.
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 of CreateFileW. This uses repr(transparent) and has the representation of a host handle, so that it can be used in such FFI declarations.
An owned handle.
An owned socket.

Traits

A trait to borrow the handle from an underlying object.
Extracts raw handles.
Extracts raw sockets.
A trait to borrow the socket from an underlying object.
Windows-specific extensions to fs::File.
Construct I/O objects from raw handles.
Creates I/O objects from raw sockets.
A trait to express the ability to consume an object and acquire ownership of its raw HANDLE.
A trait to express the ability to consume an object and acquire ownership of its raw SOCKET.
Windows-specific extensions to fs::Metadata.
Windows-specific extensions to fs::OpenOptions.
Windows-specific extensions to OsStr.
Windows-specific extensions to OsString.

Type Definitions

Raw HANDLEs.
Raw SOCKETs.