Struct intercom::ComItf
[−]
[src]
pub struct ComItf<T> where
T: ?Sized, { /* fields omitted */ }
An incoming COM interface pointer.
Intercom will implement the various [com_interface]
traits for the
corresponding ComItf<T>
type.
This applies only to the pure interfaces. Implicit interfaces created
through #[com_interface] impl MyStruct
constructs are not supported for
ComItf<T>
.
Methods
impl<T> ComItf<T> where
T: ?Sized,
[src]
T: ?Sized,
pub unsafe fn wrap(ptr: RawComPtr) -> ComItf<T>
[src]
Creates a ComItf<T>
from a raw COM interface pointer.
Safety
The ptr
must be a valid COM interface pointer for an interface
of type T
.
pub fn ptr(this: &Self) -> RawComPtr
[src]
Gets the raw COM pointer from the ComItf<T>
.
Trait Implementations
impl<T> AsRef<ComItf<IUnknown>> for ComItf<T> where
T: ?Sized,
[src]
T: ?Sized,
impl IUnknown for ComItf<IUnknown>
[src]
fn query_interface(&self, riid: REFIID) -> ComResult<RawComPtr>
[src]
Tries to get a different COM interface for the current object. Read more
fn add_ref(&self) -> u32
[src]
Increments the reference count of the object. Read more
fn release(&self) -> u32
[src]
Decreases the reference count of the object. Read more
impl ISupportErrorInfo for ComItf<ISupportErrorInfo>
[src]
fn interface_supports_error_info(&self, riid: REFIID) -> HRESULT
[src]
Informs the current COM class supports IErrorInfo
for a specific interface. Read more