Struct winresult_types::HResultError
source · [−]#[repr(transparent)]pub struct HResultError(_);Expand description
[docs.microsoft.com] Error HRESULT
Implementations
sourceimpl HResultError
impl HResultError
sourcepub const fn from_win32(value: ErrorCode) -> Self
pub const fn from_win32(value: ErrorCode) -> Self
HRESULT_FROM_WIN32, but for errors specifically
pub const fn is_customer(self) -> bool
pub const fn is_ntstatus(self) -> bool
pub const fn facility(self) -> u16
pub const fn code(self) -> u16
pub const fn to_u32(self) -> u32
Trait Implementations
sourceimpl Clone for HResultError
impl Clone for HResultError
sourcefn clone(&self) -> HResultError
fn clone(&self) -> HResultError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
impl Debug for HResultError
impl Debug for HResultError
sourceimpl From<HResultError> for u32
impl From<HResultError> for u32
sourcefn from(hr: HResultError) -> Self
fn from(hr: HResultError) -> Self
Performs the conversion.
sourceimpl From<HResultError> for HResult
impl From<HResultError> for HResult
sourcefn from(hr: HResultError) -> Self
fn from(hr: HResultError) -> Self
Performs the conversion.
sourceimpl From<HResultError> for ErrorHResultOrCode
impl From<HResultError> for ErrorHResultOrCode
sourcefn from(v: HResultError) -> Self
fn from(v: HResultError) -> Self
Performs the conversion.
sourceimpl Hash for HResultError
impl Hash for HResultError
sourceimpl Ord for HResultError
impl Ord for HResultError
sourceimpl PartialEq<HResultError> for HResultError
impl PartialEq<HResultError> for HResultError
sourcefn eq(&self, other: &HResultError) -> bool
fn eq(&self, other: &HResultError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &HResultError) -> bool
fn ne(&self, other: &HResultError) -> bool
This method tests for !=.
sourceimpl PartialOrd<HResultError> for HResultError
impl PartialOrd<HResultError> for HResultError
sourcefn partial_cmp(&self, other: &HResultError) -> Option<Ordering>
fn partial_cmp(&self, other: &HResultError) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for HResultError
impl Eq for HResultError
impl StructuralEq for HResultError
impl StructuralPartialEq for HResultError
Auto Trait Implementations
impl RefUnwindSafe for HResultError
impl Send for HResultError
impl Sync for HResultError
impl Unpin for HResultError
impl UnwindSafe for HResultError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more