mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 05:08:19 +00:00
This method cannot be ported. Prevent the user to deal with errors by simply removing it.
15 lines
559 B
Rust
15 lines
559 B
Rust
struct Instance {
|
|
exports: Exports,
|
|
}
|
|
|
|
impl Instance {
|
|
fn fun<Args, Rets>(&self, name: &str) -> Result<Func<Args, Rets>, ExportError>;
|
|
fn resolve_func(&self, name: &str) -> Result<usize, ()>;
|
|
fn dyn_func(&self, name: &str) -> Result<DynFunc, ExportError>;
|
|
fn call(&self, name: &str, params: &[Value]) -> Result<Vec<Value>, Box<dyn Error>>;
|
|
fn context(&self) -> Ref<Ctx>;
|
|
fn context_mut(&mut self) -> RefMut<Ctx>;
|
|
fn exports(&self) -> ExportsIterator<impl Iterator<Item = (&String, &Export)>>;
|
|
fn module(&self) -> Module;
|
|
}
|