Skip to main content

IFrnNativeObjectsMemoryManagementImpl

Trait IFrnNativeObjectsMemoryManagementImpl 

Source
pub trait IFrnNativeObjectsMemoryManagementImpl: IUnknownImpl {
    // Required methods
    fn retain_ns_object(&self, obj: *mut c_void);
    fn release_ns_object(&self, obj: *mut c_void);
    fn get_retain_count_for_ns_object(&self, obj: *mut c_void) -> u64;
    fn retain_cf_object(&self, obj: *mut c_void);
    fn release_cf_object(&self, obj: *mut c_void);
    fn get_retain_count_for_cf_object(&self, obj: *mut c_void) -> i64;
}
Expand description

Implement this to provide IFrnNativeObjectsMemoryManagement to native code (see IFrnNativeObjectsMemoryManagement::from_impl).

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: IFrnNativeObjectsMemoryManagementImpl + ?Sized> IFrnNativeObjectsMemoryManagementImpl for Box<T>

Source§

impl<T: IFrnNativeObjectsMemoryManagementImpl + ?Sized> IFrnNativeObjectsMemoryManagementImpl for Rc<T>

Implementors§