pub struct IFrnNativeObjectsMemoryManagement { /* private fields */ }Implementations§
Source§impl IFrnNativeObjectsMemoryManagement
impl IFrnNativeObjectsMemoryManagement
Sourcepub fn from_impl<T: IFrnNativeObjectsMemoryManagementImpl + 'static>(
value: T,
) -> ComPtr<IFrnNativeObjectsMemoryManagement>
pub fn from_impl<T: IFrnNativeObjectsMemoryManagementImpl + 'static>( value: T, ) -> ComPtr<IFrnNativeObjectsMemoryManagement>
Wraps a Rust implementation into a COM object native code can call.
Sourcepub unsafe fn retain_ns_object(&self, obj: *mut c_void)
pub unsafe fn retain_ns_object(&self, obj: *mut c_void)
IFrnNativeObjectsMemoryManagement::RetainNSObject
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Sourcepub unsafe fn release_ns_object(&self, obj: *mut c_void)
pub unsafe fn release_ns_object(&self, obj: *mut c_void)
IFrnNativeObjectsMemoryManagement::ReleaseNSObject
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Sourcepub unsafe fn get_retain_count_for_ns_object(&self, obj: *mut c_void) -> u64
pub unsafe fn get_retain_count_for_ns_object(&self, obj: *mut c_void) -> u64
IFrnNativeObjectsMemoryManagement::GetRetainCountForNSObject
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Sourcepub unsafe fn retain_cf_object(&self, obj: *mut c_void)
pub unsafe fn retain_cf_object(&self, obj: *mut c_void)
IFrnNativeObjectsMemoryManagement::RetainCFObject
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Sourcepub unsafe fn release_cf_object(&self, obj: *mut c_void)
pub unsafe fn release_cf_object(&self, obj: *mut c_void)
IFrnNativeObjectsMemoryManagement::ReleaseCFObject
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Methods from Deref<Target = IUnknown>§
Trait Implementations§
Source§impl<T: IFrnNativeObjectsMemoryManagementImpl> ImplementedBy<T> for IFrnNativeObjectsMemoryManagement
impl<T: IFrnNativeObjectsMemoryManagementImpl> ImplementedBy<T> for IFrnNativeObjectsMemoryManagement
const VTBL: &'static IFrnNativeObjectsMemoryManagementVtbl
Source§impl Interface for IFrnNativeObjectsMemoryManagement
impl Interface for IFrnNativeObjectsMemoryManagement
type Vtbl = IFrnNativeObjectsMemoryManagementVtbl
Source§fn matches_iid(iid: &Guid) -> bool
fn matches_iid(iid: &Guid) -> bool
true if iid names this interface or one of its bases (including
IUnknown). Both the IDL value and the value materialized by com.h
(see Guid::as_com_h_materialized) are accepted.fn as_unknown(&self) -> &IUnknown
fn as_raw(&self) -> *mut Self
Auto Trait Implementations§
impl !Send for IFrnNativeObjectsMemoryManagement
impl !Sync for IFrnNativeObjectsMemoryManagement
impl Freeze for IFrnNativeObjectsMemoryManagement
impl RefUnwindSafe for IFrnNativeObjectsMemoryManagement
impl Unpin for IFrnNativeObjectsMemoryManagement
impl UnsafeUnpin for IFrnNativeObjectsMemoryManagement
impl UnwindSafe for IFrnNativeObjectsMemoryManagement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more