pub unsafe fn rust_future_poll<ReturnType, UT>(
    handle: Handle,
    callback: extern "C" fn(_: u64, _: RustFuturePoll),
    data: u64
)where
    dyn RustFutureFfi<ReturnType>: HandleAlloc<UT>,
Expand description

Poll a Rust future

When the future is ready to progress the continuation will be called with the data value and a RustFuturePoll value. For each rust_future_poll call the continuation will be called exactly once.

Safety

The Handle must not previously have been passed to rust_future_free