pub struct ComItf<T> where
    T: ?Sized
{ /* private fields */ }
Expand description

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

Implementations

Creates a ComItf<T> from a raw type system COM interface pointer..

Creates a ComItf<T> from a raw type system COM interface pointer..

Creates a ComItf<T> from a raw type system COM interface pointer..

Safety

The ComItf must not outlast the reference owned by the provided pointer.

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

Query interface on the ComItf.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

Immutably borrows from an owned value. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Safety Read more

Safety Read more

Converts to this type from the input type.

Converts to this type from the input type.

Allocates a segment of memory that is safe to pass through intercom interfaces. Read more

Allocates a new BSTR based on an existing string value. Read more

Frees a segment of memory received through intercom interfaces. Read more

Frees a BSTR value. Read more

Safety Read more

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

Increments the reference count of the object. Read more

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

Decreases the reference count of the object. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Safety Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.