Struct com::interfaces::IUnknown[][src]

#[repr(transparent)]
pub struct IUnknown { /* fields omitted */ }
Expand description

IUnknown COM interface

Implementations

The COM QueryInterface Method

This method normally should not be called directly. Interfaces that implement IUnknown also implement IUnknown::query_interface which is a safe wrapper around IUnknown::QueryInterface.

The COM AddRef Method

This method normally should not be called directly. This method is used by the Clone implementation of interfaces to implement the reference counting mechanism.

The COM Release Method

This method normally should not be called directly. This method is used by the Drop implementation of interfaces to implement the reference counting mechanism.

A safe version of QueryInterface.

If the backing class implements the interface I then a Some containing an ComPtr pointing to that interface will be returned otherwise None will be returned.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

A COM compatible V-Table

The interface that this interface inherits from

The associated id for this interface

Check whether a given IID is in the inheritance hierarchy of this interface

Cast the interface pointer to a pointer to IUnknown.

Cast the COM interface pointer to a raw pointer Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

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.