Skip to main content

lift_self_arc

Function lift_self_arc 

Source
pub unsafe fn lift_self_arc<T>(ptr: *const T) -> Result<Arc<T>, FfiError>
Expand description

Lift a method’s receiver as a retained reference (self: Arc<Self>, and every async method, whose future outlives the launcher).

§Errors

Returns a marshalling error for null.

§Safety

Same contract as lift_object_arc_param.