Available on Windows only.
Expand description
Owned and borrowed OS handles.
Macros§
Structs§
- Borrowed
Handle - A borrowed handle.
- Handle
OrInvalid - FFI type for handles in return values or out parameters, where
INVALID_HANDLE_VALUEis 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. - Handle
OrNull - FFI type for handles in return values or out parameters, where
NULLis 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. - Invalid
Handle Error - This is the error type used by
HandleOrInvalidwhen attempting to convert into a handle, to indicate that the value isINVALID_HANDLE_VALUE. - Null
Handle Error - This is the error type used by
HandleOrNullwhen attempting to convert into a handle, to indicate that the value is null. - Owned
Handle - An owned handle.
Traits§
- AsHandle
- A trait to borrow the handle from an underlying object.