Lines Matching refs:Instance

37 pub struct Instance {  struct
46 assert!(core::mem::size_of::<C>() == core::mem::size_of::<Instance>());
47 assert!(core::mem::align_of::<C>() == core::mem::align_of::<Instance>());
48 assert!(core::mem::offset_of!(Instance, id) == 0);
51 impl Instance { implementation
116 ) -> Result<Instance> { in new() argument
119 let imports = Instance::typecheck_externs(store.0, module, imports)?; in new()
124 Instance::new_started(&mut store, module, imports.as_ref(), Asyncness::No) in new()
195 ) -> Result<Instance> { in new_async() argument
197 let imports = Instance::typecheck_externs(store.0, module, imports)?; in new_async()
199 unsafe { Instance::new_started(&mut store, module, imports.as_ref(), Asyncness::Yes).await } in new_async()
247 ) -> Result<Instance> { in new_started() argument
252 unsafe { Instance::new_raw(store, limiter.as_mut(), module, imports, asyncness).await? } in new_started()
292 ) -> Result<(Instance, Option<FuncIndex>)> { in new_raw() argument
339 let instance = Instance::from_wasmtime(id, store); in new_raw()
369 pub(crate) fn from_wasmtime(id: InstanceId, store: &mut StoreOpaque) -> Instance { in from_wasmtime() argument
370 Instance { in from_wasmtime()
901 pub fn instantiate(&self, mut store: impl AsContextMut<Data = T>) -> Result<Instance> { in instantiate()
922 Instance::new_started(&mut store, &self.module, imports.as_ref(), Asyncness::No) in instantiate()
940 ) -> Result<Instance> { in instantiate_async() argument
955 Instance::new_started(&mut store, &self.module, imports.as_ref(), Asyncness::Yes).await in instantiate_async()