Function uniffi::rust_future_new

source ·
pub fn rust_future_new<F, T, UT>(future: F, tag: UT) -> RustFutureHandle
where F: Future<Output = T> + Send + 'static, T: LowerReturn<UT> + Send + 'static, UT: Send + 'static,
Expand description

Reexport items from other uniffi creates Create a new RustFutureHandle

For each exported async function, UniFFI will create a scaffolding function that uses this to create the RustFutureHandle to pass to the foreign code.