[−][src]Struct winvd::HRESULT
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]
fn partial_cmp(&self, other: &HRESULT) -> Option<Ordering>
[src]
fn lt(&self, other: &HRESULT) -> bool
[src]
fn le(&self, other: &HRESULT) -> bool
[src]
fn gt(&self, other: &HRESULT) -> bool
[src]
fn ge(&self, other: &HRESULT) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,