Struct hresult::HResult [] [src]

pub struct HResult(pub u32);

Methods

impl HResult
[src]

fn succeeded(self) -> bool

fn failed(self) -> bool

fn severity(self) -> Severity

fn facility(self) -> Facility

fn code(self) -> u32

fn result<T>(self, val: T) -> Result<T, HResult>

fn result_or<T, F: FnOnce() -> T>(self, f: F) -> Result<T, HResult>

Trait Implementations

impl PartialEq for HResult
[src]

fn eq(&self, __arg_0: &HResult) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &HResult) -> bool

This method tests for !=.

impl Eq for HResult
[src]

impl Clone for HResult
[src]

fn clone(&self) -> HResult

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for HResult
[src]

impl From<i32> for HResult
[src]

fn from(hr: i32) -> HResult

Performs the conversion.

impl Display for HResult
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Debug for HResult
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.