pub unsafe trait Interface {
    const IID: GUID;
    fn cast<T>(&self) -> Result<T, Error>
    where
        T: Interface
, { ... }
fn downgrade(&self) -> Result<Weak<Self>, Error> { ... } }
Expand description

Provides low-level access to a COM interface.

This trait is automatically used by the generated bindings and should not be used directly.

Safety

Associated Constants

A unique identifier representing this interface.

Provided methods

Attempts to cast the current interface to another interface using QueryInterface. The name cast is preferred to query because there is a WinRT method named query but not one named cast.

Attempts to create a Weak reference to this object.

Implementors