pub unsafe fn callback_ret_object<T>(
ptr: *mut T,
) -> Result<Arc<T>, ForeignError>Expand description
Adopt the strong object reference a vtable entry returned.
§Errors
Returns a MARSHAL_ERROR_CODE failure for a null pointer.
§Safety
ptr must be null or carry one strong reference to a live T (a fresh
_clone), which this adopts.