Function uniffi::ffi::rust_future_complete
pub unsafe fn rust_future_complete<ReturnType, UT>(
handle: Handle,
out_status: &mut RustCallStatus
) -> ReturnTypewhere
dyn RustFutureFfi<ReturnType>: HandleAlloc<UT>,
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 Handle 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