[][src]Struct hresult::HRESULT

pub struct HRESULT(_);

The HRESULT numbering space is vendor-extensible. Vendors can supply their own values for this field, as long as the C bit (0x20000000) is set, indicating it is a customer code.

The HRESULT numbering space has the following internal structure. Any protocol that uses NTSTATUS values on the wire is responsible for stating the order in which the bytes are placed on the wire.

Methods

impl HRESULT[src]

pub fn is_success(&self) -> bool[src]

pub fn is_customer(&self) -> bool[src]

pub fn s(&self) -> bool[src]

Severity. If set, indicates a failure result. If clear, indicates a success result.

pub fn r(&self) -> bool[src]

Reserved. If the N bit is clear, this bit MUST be set to 0. If the N bit is set, this bit is defined by the NTSTATUS numbering space (as specified in section 2.3).

pub fn c(&self) -> bool[src]

Customer. This bit specifies if the value is customer-defined or Microsoft-defined. The bit is set for customer-defined values and clear for Microsoft-defined values. <1>

pub fn n(&self) -> bool[src]

If set, indicates that the error code is an NTSTATUS value (as specified in section 2.3), except that this bit is set.

pub fn x(&self) -> bool[src]

Reserved. SHOULD be set to 0. <2>

pub fn facility(&self) -> u16[src]

An indicator of the source of the error. New facilities are occasionally added by Microsoft.

pub fn code(&self) -> u16[src]

Trait Implementations

impl From<i32> for HRESULT[src]

impl From<u32> for HRESULT[src]

impl Display for HRESULT[src]

impl Debug for HRESULT[src]

Auto Trait Implementations

impl Send for HRESULT

impl Sync for HRESULT

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.