pub trait CheckHandleError
where Self: ValidateHandle + Sized,
{ // Required method fn valid_or_e_handle(self) -> Result<Self>; }

Required Methods§

source

fn valid_or_e_handle(self) -> Result<Self>

Passes a self, if successfully validated with is_invalid(), through to an Ok value, or, in case of it being invalid, returns Err with HRESULT E_HANDLE.

To be used with functions that don’t offer an error code via GetLastError(), and when there’s a need to validate with is_invalid().

Object Safety§

This trait is not object safe.

Implementors§