Struct HRESULT
#[repr(transparent)]pub struct HRESULT(pub i32);Expand description
An error code value returned by most COM functions.
Tuple Fields§
§0: i32Implementations§
Source§impl HRESULT
impl HRESULT
Sourcepub fn from_thread() -> HRESULT
pub fn from_thread() -> HRESULT
Creates a new HRESULT from the Win32 error code returned by GetLastError().
Sourcepub const fn from_win32(error: u32) -> HRESULT
pub const fn from_win32(error: u32) -> HRESULT
Maps a Win32 error code to an HRESULT value.
Trait Implementations§
Source§impl Ord for HRESULT
impl Ord for HRESULT
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for HRESULT
impl PartialOrd for HRESULT
impl Copy for HRESULT
impl Eq for HRESULT
impl StructuralPartialEq for HRESULT
Auto Trait Implementations§
impl Freeze for HRESULT
impl RefUnwindSafe for HRESULT
impl Send for HRESULT
impl Sync for HRESULT
impl Unpin for HRESULT
impl UnsafeUnpin for HRESULT
impl UnwindSafe for HRESULT
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more