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§
Source§impl 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 Freeze for DispatchInterface
impl RefUnwindSafe for DispatchInterface
impl !Send for DispatchInterface
impl !Sync for DispatchInterface
impl Unpin for DispatchInterface
impl UnwindSafe for DispatchInterface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more