pub unsafe fn lift_callback<C: CallbackInterface + ?Sized>(
ctx: *mut c_void,
vtable: *const C::Vtable,
name: &str,
) -> Result<Arc<C>, FfiError>Expand description
Lift a callback-interface parameter’s (ctx, vtable) slots into the
Arc<dyn Trait> the producer’s function takes. name is the parameter’s
name, for the error message.
§Errors
Returns a MARSHAL_ERROR_CODE error for a null vtable or one smaller
than the producer’s.
§Safety
Same contract as ForeignCallback::from_raw.