pub trait IClassFactory {
// Required methods
unsafe fn create_instance(
&self,
outer: RawComPtr,
riid: REFIID,
) -> ComResult<RawComPtr>;
fn lock_server(&self, lock: bool) -> ComResult<()>;
}Required Methods§
Sourceunsafe fn create_instance(
&self,
outer: RawComPtr,
riid: REFIID,
) -> ComResult<RawComPtr>
unsafe fn create_instance( &self, outer: RawComPtr, riid: REFIID, ) -> ComResult<RawComPtr>
§Safety
The REFIID must be a valid IID pointer.
fn lock_server(&self, lock: bool) -> ComResult<()>
Trait Implementations§
Source§impl ComInterface for dyn IClassFactory
impl ComInterface for dyn IClassFactory
Source§fn iid_ts<TS: TypeSystem>() -> &'static IIDwhere
Self: ComInterfaceVariant<TS>,
fn iid_ts<TS: TypeSystem>() -> &'static IIDwhere
Self: ComInterfaceVariant<TS>,
Returns the IID of the requested interface.
Source§type TSelf = dyn IClassFactory
type TSelf = dyn IClassFactory
The current interface. Read more
Source§fn deref(com_itf: &ComItf<dyn IClassFactory>) -> &(dyn IClassFactory + 'static)
fn deref(com_itf: &ComItf<dyn IClassFactory>) -> &(dyn IClassFactory + 'static)
Source§impl ComInterfaceTypeInfo for dyn IClassFactory
impl ComInterfaceTypeInfo for dyn IClassFactory
fn gather_type_info() -> Vec<TypeInfo>
Source§impl<I, S> ComInterfaceVTableFor<I, S, AutomationTypeSystem> for dyn IClassFactory
impl<I, S> ComInterfaceVTableFor<I, S, AutomationTypeSystem> for dyn IClassFactory
Source§impl<I, S> ComInterfaceVTableFor<I, S, RawTypeSystem> for dyn IClassFactory
impl<I, S> ComInterfaceVTableFor<I, S, RawTypeSystem> for dyn IClassFactory
Source§impl ForeignType for dyn IClassFactory
impl ForeignType for dyn IClassFactory
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".