pub trait Ffi {
// Required methods
fn call(
&self,
ctx: &mut FfiCtx<'_>,
params: Vec<GosValue, Global>
) -> Result<Vec<GosValue, Global>, RuntimeError>;
fn async_call(
&self,
ctx: &mut FfiCtx<'_>,
params: Vec<GosValue, Global>
) -> Pin<Box<dyn Future<Output = Result<Vec<GosValue, Global>, RuntimeError>>, Global>>;
}
Expand description
A FFI Object implemented in Rust for Goscript to call