mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +00:00
doc(deprecated) Update the old and new API comparison.
This commit is contained in:
@@ -1,18 +1,14 @@
|
||||
struct Instance {
|
||||
module: Arc<ModuleInner>,
|
||||
exports: Exports,
|
||||
}
|
||||
|
||||
impl Instance {
|
||||
fn load<T: Loader>(&self, loader: T) -> Result<T::Instnace, T::Error>;
|
||||
fn fun<Args, Rets>(&self, name: &str) -> ResolveResult<Args, Rets, Wasm>;
|
||||
fn resolve_func(&self, name: &str) -> ResolveError<usize>;
|
||||
fn dyn_func(&self, name: &str) -> ResolveResult<DynFunc>;
|
||||
fn call(&self, name: &str, params: &[Value]) -> CallResult<Vec<Value>>;
|
||||
fn context(&self) -> &Ctx;
|
||||
fn context_mut(&mut self) -> &mut Ctx;
|
||||
fn exports(&self) -> ExportsIter;
|
||||
fn load<T>(&self, _loader: T) -> Result<Self, ()>;
|
||||
fn fun<Args, Rets>(&self, name: &str) -> Result<Func<Args, Rets>, ExportError>;
|
||||
fn resolve_func(&self, name: &str) -> Result<usize, ()>;
|
||||
fn dyn_fun(&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 module(&self) -> Module;
|
||||
fn get_internal(&self, fields: &InternalField) -> u64;
|
||||
fn set_internal(&self, fields: &InternalField, value: u64);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user