Available on Windows only.
Expand description
Owned and borrowed OS handles.
Macros
Structs
- A borrowed handle.
- 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. - FFI type for handles in return values or out parameters, where
NULL
is used as a sentry value to indicate errors, such as in the return value ofCreateThread
. This usesrepr(transparent)
and has the representation of a host handle, so that it can be used in such FFI declarations. - This is the error type used by
HandleOrInvalid
when attempting to convert into a handle, to indicate that the value isINVALID_HANDLE_VALUE
. - This is the error type used by
HandleOrNull
when attempting to convert into a handle, to indicate that the value is null. - An owned handle.
Traits
- A trait to borrow the handle from an underlying object.