HResultExt

Trait HResultExt 

Source
pub trait HResultExt {
    // Required method
    fn ok_with_hresult(self) -> Result<HRESULT>;
}

Required Methods§

Source

fn ok_with_hresult(self) -> Result<HRESULT>

Like HRESULT::ok(), but with success HRESULTs forwarded instead of giving (). Useful when working with functions that can return multiple success return values, like AssocQueryStringW().

Implementations on Foreign Types§

Source§

impl HResultExt for HRESULT

Implementors§