[][src]Struct winvd::HRESULT

pub struct HRESULT(pub u32);

This is wrapper for handling HRESULT values.

Value is printed in hexadecimal format for convinience, this is usually the format it's given in MSDN. Similarily this can be pattern matched using hexadecimal format: HRESULT(0x800706BA)

Implementations

impl HRESULT[src]

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

Is any failure?

pub fn ok() -> HRESULT[src]

Indicates not a failure

pub fn from_i32(v: i32) -> HRESULT[src]

Create value

Trait Implementations

impl Clone for HRESULT[src]

impl Copy for HRESULT[src]

impl Debug for HRESULT[src]

impl Default for HRESULT[src]

impl From<HRESULT> for Error[src]

impl From<HRESULT> for Result<(), Error>[src]

impl From<i32> for HRESULT[src]

impl PartialEq<HRESULT> for HRESULT[src]

impl PartialOrd<HRESULT> for HRESULT[src]

impl StructuralPartialEq for HRESULT[src]

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

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.