Struct win_idispatch::UnknownInterface
source · [−]pub struct UnknownInterface { /* private fields */ }
Expand description
UnknownInterface is a structure that maintains access to an IUnkonwn pointer. The pointer will be cleaned up correctly when the reference is dropped.
Implementations
sourceimpl UnknownInterface
impl UnknownInterface
sourcepub fn new(
class_id: GUID,
class_context: CLSCTX
) -> Result<UnknownInterface, Error>
pub fn new(
class_id: GUID,
class_context: CLSCTX
) -> Result<UnknownInterface, Error>
Create a new Unknown interface based on the provided class GUID and the class context.
sourcepub fn get_dispatch_interface(&self) -> Result<DispatchInterface, Error>
pub fn get_dispatch_interface(&self) -> Result<DispatchInterface, Error>
Gets a DisptachInterface to work with the COM server registered with the class GUID provided to the unknown interface.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UnknownInterface
impl !Send for UnknownInterface
impl !Sync for UnknownInterface
impl Unpin for UnknownInterface
impl UnwindSafe for UnknownInterface
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