Trait xpcom::XpCom [] [src]

pub unsafe trait XpCom: RefCounted {
    const IID: nsIID;
    fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>> { ... }
}

A type which implements XpCom must follow the following rules:

Associated Constants

Provided Methods

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise.

Implementors