pub trait Class {
    type Interfaces: InterfaceList;
}
Expand description

A Rust type that defines a COM class.

Must be implemented for a type to be used with ComWrapper.

Required Associated Types§

source

type Interfaces: InterfaceList

The list of interfaces implemented by this Rust type.

Should be given as a tuple, e.g.:

struct MyClass;

impl Class for MyClass {
    type Interfaces = (ISomeInterface, IAnotherInterface);
}

Implementors§