Trait IDispatchExt

Source
pub trait IDispatchExt {
    // Required methods
    fn get(&self, name: &str) -> Result<Variant, IDispatchError>;
    fn put(&self, name: &str, value: Variant) -> Result<(), IDispatchError>;
    fn call(
        &self,
        name: &str,
        args: Vec<Variant>,
    ) -> Result<Variant, IDispatchError>;
}

Required Methods§

Source

fn get(&self, name: &str) -> Result<Variant, IDispatchError>

Source

fn put(&self, name: &str, value: Variant) -> Result<(), IDispatchError>

Source

fn call( &self, name: &str, args: Vec<Variant>, ) -> Result<Variant, IDispatchError>

Implementations on Foreign Types§

Source§

impl IDispatchExt for IDispatch

Source§

fn get(&self, name: &str) -> Result<Variant, IDispatchError>

Get a property from a COM object

Note: consider using the get! macro

Source§

fn put(&self, name: &str, value: Variant) -> Result<(), IDispatchError>

Set a property on a COM object

Note: consider using the put! macro

Source§

fn call( &self, name: &str, args: Vec<Variant>, ) -> Result<Variant, IDispatchError>

Call a method on a COM object

Note: consider using the call! macro

Implementors§