pub struct HRESULT(/* private fields */);
Expand description
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.
Implementations§
Source§impl HRESULT
impl HRESULT
pub fn is_success(&self) -> bool
pub fn is_customer(&self) -> bool
Sourcepub fn s(&self) -> bool
pub fn s(&self) -> bool
Severity. If set, indicates a failure result. If clear, indicates a success result.
Sourcepub fn r(&self) -> bool
pub fn r(&self) -> bool
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).
Sourcepub fn c(&self) -> bool
pub fn c(&self) -> bool
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>
Sourcepub fn n(&self) -> bool
pub fn n(&self) -> bool
If set, indicates that the error code is an NTSTATUS value (as specified in section 2.3), except that this bit is set.
Sourcepub fn facility(&self) -> u16
pub fn facility(&self) -> u16
An indicator of the source of the error. New facilities are occasionally added by Microsoft.