Struct windows::HRESULT [−][src]
#[repr(transparent)]#[must_use]pub struct HRESULT(pub u32);
Expand description
A primitive error code value returned by most COM functions.
Implementations
Asserts that self is a success code.
This will invoke the panic! macro if self is a failure code and display
the HRESULT value for diagnostics.
Returns the Option as a Result if the option is a Some value, returning
a suitable error if not.
Calls op if self is a success code, otherwise returns HRESULT
converted to Result<T>.
If the Result is Ok converts the T::Abi into T.
Retrieves the error code stored on the calling thread.
Creates a failure code with the provided win32 error code.
This is equivalent to HRESULT_FROM_WIN32.
Trait Implementations
Returns a pointer for setting the object’s value via an ABI call.
Casts the ABI representation to a Rust object by taking ownership of the bits.
Auto Trait Implementations
impl RefUnwindSafe for HRESULTimpl UnwindSafe for HRESULTBlanket Implementations
Mutably borrows from an owned value. Read more