pub trait SharedMemoryManager<T> {
    // Required methods
    unsafe fn ref_(ptr: *mut T);
    unsafe fn unref(ptr: *mut T);
}

Required Methods§

source

unsafe fn ref_(ptr: *mut T)

Safety

Callers are responsible for ensuring that a matching call to unref is made at an appropriate time.

source

unsafe fn unref(ptr: *mut T)

Safety

Callers are responsible for ensuring that a matching call to ref was made before this is called, and that the pointer is not used after the unref call.

Object Safety§

This trait is not object safe.

Implementors§