Module handle
Owned and borrowed OS handles.
Structs
- BorrowedHandle A borrowed handle.
-
HandleOrInvalid
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. -
HandleOrNull
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. -
InvalidHandleError
This is the error type used by
HandleOrInvalidwhen attempting to convert into a handle, to indicate that the value isINVALID_HANDLE_VALUE. -
NullHandleError
This is the error type used by
HandleOrNullwhen attempting to convert into a handle, to indicate that the value is null. - OwnedHandle An owned handle.
Traits
- AsHandle A trait to borrow the handle from an underlying object.