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]

[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.

[src]

Gets the raw COM pointer from the ComItf<T>.

Trait Implementations

impl<T> AsRef<ComItf<IUnknown>> for ComItf<T> where
    T: ?Sized
[src]

[src]

Performs the conversion.

impl IUnknown for ComItf<IUnknown>
[src]

[src]

Tries to get a different COM interface for the current object. Read more

[src]

Increments the reference count of the object. Read more

[src]

Decreases the reference count of the object. Read more

impl ISupportErrorInfo for ComItf<ISupportErrorInfo>
[src]

[src]

Informs the current COM class supports IErrorInfo for a specific interface. Read more

Auto Trait Implementations

impl<T> !Send for ComItf<T>

impl<T> !Sync for ComItf<T>