Struct IClassFactory

Source
pub struct IClassFactory { /* private fields */ }
Expand description

IClassFactory COM interface

Implementations§

Source§

impl IClassFactory

Source

pub unsafe fn CreateInstance<'a, __0: Into<Param<'a, Option<IUnknown>>>, __1: Into<Param<'a, *const GUID>>, __2: Into<Param<'a, *mut *mut c_void>>>( &self, aggr: __0, riid: __1, ppv: __2, ) -> HRESULT

the CreateInstance COM method

Source

pub unsafe fn LockServer<'a, __0: Into<Param<'a, BOOL>>>( &self, increment: __0, ) -> HRESULT

the LockServer COM method

Source§

impl IClassFactory

Source

pub fn create_instance<T: Interface>(&self) -> Option<T>

Create an instance of the associated class

This is a safe wrapper around CreateInstance

Trait Implementations§

Source§

impl Clone for IClassFactory

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IClassFactory

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for IClassFactory

Source§

type Target = <IClassFactory as Interface>::Super

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Drop for IClassFactory

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<'a> From<&'a IClassFactory> for &'a IUnknown

Source§

fn from(this: &'a IClassFactory) -> Self

Converts to this type from the input type.
Source§

impl From<IClassFactory> for IUnknown

Source§

fn from(this: IClassFactory) -> Self

Converts to this type from the input type.
Source§

impl Interface for IClassFactory

Source§

const IID: IID = IID_ICLASS_FACTORY

The associated id for this interface
Source§

type VTable = IClassFactoryVTable

A COM compatible V-Table
Source§

type Super = IUnknown

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &IID) -> bool

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

fn as_iunknown(&self) -> &IUnknown

Cast the interface pointer to a pointer to IUnknown.
Source§

fn as_raw(&self) -> NonNull<NonNull<Self::VTable>>

Cast the COM interface pointer to a raw pointer Read more
Source§

impl<'a> Into<Param<'a, IUnknown>> for &'a IClassFactory

Source§

fn into(self) -> Param<'a, IUnknown>

Converts this type into the (usually inferred) input type.
Source§

impl<'a> Into<Param<'a, IUnknown>> for IClassFactory

Source§

fn into(self) -> Param<'a, IUnknown>

Converts this type into the (usually inferred) input type.
Source§

impl PartialEq for IClassFactory

Source§

fn eq(&self, other: &IClassFactory) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for IClassFactory

Source§

impl StructuralPartialEq for IClassFactory

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AbiTransferable for T
where T: Interface,

Source§

type Abi = NonNull<NonNull<<T as Interface>::VTable>>

The FFI compatible type the implementing type can turn into.
Source§

fn get_abi(&self) -> <T as AbiTransferable>::Abi

Turn the type into the FFI ABI type.
Source§

fn set_abi(&mut self) -> *mut <T as AbiTransferable>::Abi

Set the abi of the implementing type
Source§

fn from_abi(abi: Self::Abi) -> Self

Convert into a reference to Self from a reference to the ABI
Source§

unsafe fn slice_from_abi<'a>(abi: *const Self::Abi, len: usize) -> &'a [Self]

Convert a pointer to a Self::Abi and and a length to a slice. Read more
Source§

unsafe fn slice_from_mut_abi<'a>( abi: *mut Self::Abi, len: usize, ) -> &'a mut [Self]

Convert a pointer to a Self::Abi and and a length to a mutable slice. Read more
Source§

fn into_abi(self) -> Self::Abi

Converts and consumes the ABI transferable type into its ABI representation.
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.