Type Alias ComResult

Source
pub type ComResult<A> = Result<A, ComError>;
Expand description

Basic COM result type.

The ComResult maps the Rust concept of Ok and Err values to COM [out, retval] parameter and HRESULT return value.

Aliased Type§

pub enum ComResult<A> {
    Ok(A),
    Err(ComError),
}

Variants§

§1.0.0

Ok(A)

Contains the success value

§1.0.0

Err(ComError)

Contains the error value

Trait Implementations§

Source§

impl From<HRESULT> for ComResult<()>

Source§

fn from(hresult: HRESULT) -> ComResult<()>

Converts to this type from the input type.