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 moreimpl Debug for HResultError
impl Debug for HResultError
sourceimpl From<(HResultFacilityMicrosoft, ErrorCode)> for HResultError
impl From<(HResultFacilityMicrosoft, ErrorCode)> for HResultError
sourcefn from((fac, code): (HResultFacilityMicrosoft, ErrorCode)) -> Self
fn from((fac, code): (HResultFacilityMicrosoft, ErrorCode)) -> Self
Converts to this type from the input type.
sourceimpl From<HResultError> for ErrorHResultOrCode
impl From<HResultError> for ErrorHResultOrCode
sourcefn from(v: HResultError) -> Self
fn from(v: HResultError) -> Self
Converts to this type from the input type.
sourceimpl From<HResultError> for HResult
impl From<HResultError> for HResult
sourcefn from(hr: HResultError) -> Self
fn from(hr: HResultError) -> Self
Converts to this type from the input type.
sourceimpl From<HResultError> for i32
impl From<HResultError> for i32
sourcefn from(hr: HResultError) -> Self
fn from(hr: HResultError) -> Self
Converts to this type from the input type.
sourceimpl From<HResultError> for u32
impl From<HResultError> for u32
sourcefn from(hr: HResultError) -> Self
fn from(hr: HResultError) -> Self
Converts to this type from the input type.
sourceimpl From<u32> for HResultError
impl From<u32> for HResultError
sourceimpl Hash for HResultError
impl Hash for HResultError
sourceimpl Ord for HResultError
impl Ord for HResultError
sourcefn cmp(&self, other: &HResultError) -> Ordering
fn cmp(&self, other: &HResultError) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ErrorHResultOrCode> for HResultError
impl PartialEq<ErrorHResultOrCode> for HResultError
sourcefn eq(&self, other: &ErrorHResultOrCode) -> bool
fn eq(&self, other: &ErrorHResultOrCode) -> bool
sourceimpl PartialEq<HResultError> for ErrorHResultOrCode
impl PartialEq<HResultError> for ErrorHResultOrCode
sourcefn eq(&self, other: &HResultError) -> bool
fn eq(&self, other: &HResultError) -> bool
sourceimpl PartialEq<HResultError> for HResult
impl PartialEq<HResultError> for HResult
sourcefn eq(&self, other: &HResultError) -> bool
fn eq(&self, other: &HResultError) -> bool
sourceimpl PartialEq<HResultError> for HResultError
impl PartialEq<HResultError> for HResultError
sourcefn eq(&self, other: &HResultError) -> bool
fn eq(&self, other: &HResultError) -> bool
sourceimpl<O, E: PartialEq<HResultError>> PartialEq<HResultError> for Result<O, E>
impl<O, E: PartialEq<HResultError>> PartialEq<HResultError> for Result<O, E>
sourcefn eq(&self, other: &HResultError) -> bool
fn eq(&self, other: &HResultError) -> bool
sourceimpl PartialEq<HResultError> for i32
impl PartialEq<HResultError> for i32
sourcefn eq(&self, other: &HResultError) -> bool
fn eq(&self, other: &HResultError) -> bool
sourceimpl PartialEq<HResultError> for u32
impl PartialEq<HResultError> for u32
sourcefn eq(&self, other: &HResultError) -> bool
fn eq(&self, other: &HResultError) -> bool
sourceimpl<O, E: PartialEq<HResultError>> PartialEq<Result<O, E>> for HResultError
impl<O, E: PartialEq<HResultError>> PartialEq<Result<O, E>> for HResultError
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>
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 moreimpl 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 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