#[repr(transparent)]pub struct HRESULT(pub i32);
Expand description
An error code value returned by most COM functions.
Tuple Fields
0: i32
Implementations
impl HRESULT
impl HRESULT
pub fn unwrap(self)
pub fn unwrap(self)
pub const fn ok(self) -> Result<()>
pub const fn ok(self) -> Result<()>
Converts the HRESULT
to Result<()>
.
pub unsafe fn from_abi<T: Abi>(self, abi: MaybeUninit<T::Abi>) -> Result<T>
pub unsafe fn from_abi<T: Abi>(self, abi: MaybeUninit<T::Abi>) -> Result<T>
Trait Implementations
impl Copy for HRESULT
impl Eq for HRESULT
impl StructuralEq for HRESULT
impl StructuralPartialEq for HRESULT
Auto Trait Implementations
impl RefUnwindSafe for HRESULT
impl Send for HRESULT
impl Sync for HRESULT
impl Unpin for HRESULT
impl UnwindSafe for HRESULT
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more