pub unsafe fn rust_future_complete<ReturnType>(
handle: RustFutureHandle,
out_status: &mut RustCallStatus,
) -> ReturnType
Expand description
Complete a Rust future
Note: the actually extern “C” scaffolding functions can’t be generic, so we generate one for each supported FFI type.
§Safety
- The RustFutureHandle must not previously have been passed to rust_future_free
- The
T
param must correctly correspond to the rust_future_new call. It must be<Output as LowerReturn<UT>>::ReturnType