[][src]Trait com::ComInterface

pub unsafe trait ComInterface: IUnknown + 'static {
    type VTable;
    type Super: ComInterface + ?Sized;

    const IID: IID;
    fn is_iid_in_inheritance_chain(riid: &IID) -> bool { ... }
}

A COM compliant interface

Safety

The trait or struct implementing this trait must provide a valid vtable as the associated VTable type. A vtable is valid if:

  • it is #[repr(C)]
  • the type only contains `extern "stdcall" fn" definitions

Associated Types

type VTable

A COM compatible V-Table

type Super: ComInterface + ?Sized

The interface that this interface inherits from

Loading content...

Associated Constants

const IID: IID

The associated id for this interface

Loading content...

Provided methods

fn is_iid_in_inheritance_chain(riid: &IID) -> bool

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

Loading content...

Implementors

impl ComInterface for dyn IClassFactory[src]

impl ComInterface for dyn IUnknown[src]

Loading content...