#[com_interface]
Expand description

Defines an intercom interface.

#[com_interface(IID, base?)]
trait Foo { /* ... */ }
  • IID - A unique ID of the interface used to query for it. Must be either a valid GUID or AUTO_GUID specifier.
  • base - Base interface. Defaults to IUnknown if not specified.

Associated types: trait, impl Struct

Intercom interfaces form the basis of the cross language API provided by the user library. The interfaces define the available methods that can be called through the interface pointers given to the clients.

Each interface automatically inherits from the base IUnknown interface, which provides the clients a way to perform reference counting and the ability to query for other interfaces the object might implement.