Struct win_idispatch::DispatchInterface
source · [−]pub struct DispatchInterface { /* private fields */ }
Expand description
Holds the pointer to the IDispatch interface. Drop is implemented to correctly release the pointer when dropped.
Implementations
sourceimpl DispatchInterface
impl DispatchInterface
sourcepub fn new(dispatch: LPDISPATCH) -> DispatchInterface
pub fn new(dispatch: LPDISPATCH) -> DispatchInterface
Creates a new Dispatch Interface using the provided pointer. The pointer should not be managed by anything else after provided to the interface.
sourcepub fn call(
&self,
name: &str,
args: Option<Vec<VariantArg>>
) -> Result<VariantResult, Error>
pub fn call(
&self,
name: &str,
args: Option<Vec<VariantArg>>
) -> Result<VariantResult, Error>
This executes a dispatch method operation for the name provided and passes the arguments to the operation.
sourcepub fn get(
&self,
name: &str,
args: Option<Vec<VariantArg>>
) -> Result<VariantResult, Error>
pub fn get(
&self,
name: &str,
args: Option<Vec<VariantArg>>
) -> Result<VariantResult, Error>
This executes a property get operation for the name provided and passes the arguments to the operation.
sourcepub fn put(
&self,
name: &str,
args: Option<Vec<VariantArg>>
) -> Result<VariantResult, Error>
pub fn put(
&self,
name: &str,
args: Option<Vec<VariantArg>>
) -> Result<VariantResult, Error>
This executes a property put operation for the name provided and passes the arguments to the operation.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DispatchInterface
impl !Send for DispatchInterface
impl !Sync for DispatchInterface
impl Unpin for DispatchInterface
impl UnwindSafe for DispatchInterface
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more