Struct winresult_types::HResult
source · [−]#[repr(transparent)]pub struct HResult(_);Expand description
[docs.microsoft.com] HRESULT
Implementations
sourceimpl HResult
impl HResult
pub const fn is_error(self) -> bool
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
pub const fn succeeded(self) -> Result<HResultSuccess, HResultError>
Trait Implementations
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<HResultSuccess> for HResult
impl From<HResultSuccess> for HResult
sourcefn from(hr: HResultSuccess) -> Self
fn from(hr: HResultSuccess) -> Self
Performs the conversion.
sourceimpl Ord for HResult
impl Ord for HResult
sourceimpl PartialOrd<HResult> for HResult
impl PartialOrd<HResult> for HResult
sourcefn partial_cmp(&self, other: &HResult) -> Option<Ordering>
fn partial_cmp(&self, other: &HResult) -> 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 HResult
impl Eq for HResult
impl Pod 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 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