Type Alias linera_witty::wasmer::ReentrantInstance

source ·
pub type ReentrantInstance<'a, UserData> = FunctionEnvMut<'a, Environment<UserData>>;
Expand description

Alias for the Instance implementation made available inside host functions called by the guest.

Aliased Type§

struct ReentrantInstance<'a, UserData> { /* private fields */ }

Trait Implementations§

source§

impl<UserData: 'static> Instance for ReentrantInstance<'_, UserData>

§

type Runtime = Wasmer

The runtime this instance is running in.
§

type UserData = UserData

Custom user data stored in the instance.
§

type UserDataReference<'a> = MutexGuard<'a, UserData> where Self::UserData: 'a, Self: 'a

A reference to the custom user data stored in the instance.
§

type UserDataMutReference<'a> = MutexGuard<'a, UserData> where Self::UserData: 'a, Self: 'a

A mutable reference to the custom user data stored in the instance.
source§

fn load_export(&mut self, name: &str) -> Option<Extern>

Loads an export from the guest module.
source§

fn user_data(&self) -> Self::UserDataReference<'_>

Returns a reference to the custom user data stored in this instance.
source§

fn user_data_mut(&mut self) -> Self::UserDataMutReference<'_>

Returns a mutable reference to the custom user data stored in this instance.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HCons<O, HCons<P, HCons<Q, HNil>>>>>>>>>>>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HCons<O, HCons<P, HCons<Q, HNil>>>>>>>>>>>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HCons<O, HCons<P, HCons<Q, HNil>>>>>>>>>>>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HCons<O, HCons<P, HNil>>>>>>>>>>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HCons<O, HCons<P, HNil>>>>>>>>>>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HCons<O, HCons<P, HNil>>>>>>>>>>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HCons<O, HNil>>>>>>>>>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HCons<O, HNil>>>>>>>>>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HCons<O, HNil>>>>>>>>>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HNil>>>>>>>>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HNil>>>>>>>>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HCons<N, HNil>>>>>>>>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HNil>>>>>>>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HNil>>>>>>>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HCons<M, HNil>>>>>>>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HNil>>>>>>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HNil>>>>>>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HCons<L, HNil>>>>>>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HNil>>>>>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HNil>>>>>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HCons<K, HNil>>>>>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, G, H, I, J, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HNil>>>>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HNil>>>>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HCons<J, HNil>>>>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, G, H, I, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HNil>>>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HNil>>>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HCons<I, HNil>>>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, G, H, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HNil>>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HNil>>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HCons<H, HNil>>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, G, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HNil>>>>>>>, Results> for ReentrantInstance<'_, UserData>

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HNil>>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HCons<G, HNil>>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, F, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HNil>>>>>>, Results> for ReentrantInstance<'_, UserData>
where A: FlatType + FromToNativeWasmType + NativeWasmTypeInto, B: FlatType + FromToNativeWasmType + NativeWasmTypeInto, C: FlatType + FromToNativeWasmType + NativeWasmTypeInto, D: FlatType + FromToNativeWasmType + NativeWasmTypeInto, E: FlatType + FromToNativeWasmType + NativeWasmTypeInto, F: FlatType + FromToNativeWasmType + NativeWasmTypeInto, Results: FlatLayout + WasmerResults, UserData: 'static,

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HNil>>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HCons<F, HNil>>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, E, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HNil>>>>>, Results> for ReentrantInstance<'_, UserData>
where A: FlatType + FromToNativeWasmType + NativeWasmTypeInto, B: FlatType + FromToNativeWasmType + NativeWasmTypeInto, C: FlatType + FromToNativeWasmType + NativeWasmTypeInto, D: FlatType + FromToNativeWasmType + NativeWasmTypeInto, E: FlatType + FromToNativeWasmType + NativeWasmTypeInto, Results: FlatLayout + WasmerResults, UserData: 'static,

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HNil>>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HCons<E, HNil>>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, D, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HCons<D, HNil>>>>, Results> for ReentrantInstance<'_, UserData>
where A: FlatType + FromToNativeWasmType + NativeWasmTypeInto, B: FlatType + FromToNativeWasmType + NativeWasmTypeInto, C: FlatType + FromToNativeWasmType + NativeWasmTypeInto, D: FlatType + FromToNativeWasmType + NativeWasmTypeInto, Results: FlatLayout + WasmerResults, UserData: 'static,

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HCons<D, HNil>>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HCons<D, HNil>>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, C, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HCons<C, HNil>>>, Results> for ReentrantInstance<'_, UserData>
where A: FlatType + FromToNativeWasmType + NativeWasmTypeInto, B: FlatType + FromToNativeWasmType + NativeWasmTypeInto, C: FlatType + FromToNativeWasmType + NativeWasmTypeInto, Results: FlatLayout + WasmerResults, UserData: 'static,

§

type Function = TypedFunction<<HCons<A, HCons<B, HCons<C, HNil>>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HCons<C, HNil>>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, B, Results, UserData> InstanceWithFunction<HCons<A, HCons<B, HNil>>, Results> for ReentrantInstance<'_, UserData>
where A: FlatType + FromToNativeWasmType + NativeWasmTypeInto, B: FlatType + FromToNativeWasmType + NativeWasmTypeInto, Results: FlatLayout + WasmerResults, UserData: 'static,

§

type Function = TypedFunction<<HCons<A, HCons<B, HNil>> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HCons<B, HNil>>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<A, Results, UserData> InstanceWithFunction<HCons<A, HNil>, Results> for ReentrantInstance<'_, UserData>
where A: FlatType + FromToNativeWasmType + NativeWasmTypeInto, Results: FlatLayout + WasmerResults, UserData: 'static,

§

type Function = TypedFunction<<HCons<A, HNil> as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, _: HCons<A, HNil>, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<Results, UserData> InstanceWithFunction<HNil, Results> for ReentrantInstance<'_, UserData>
where Results: FlatLayout + WasmerResults, UserData: 'static,

§

type Function = TypedFunction<<HNil as WasmerParameters>::ImportParameters, <Results as WasmerResults>::Results>

The runtime-specific type to represent the function.
source§

fn function_from_export( &mut self, export: <Self::Runtime as Runtime>::Export, ) -> Result<Option<Self::Function>, RuntimeError>

Converts an export into a function, if it is one.
source§

fn call( &mut self, function: &Self::Function, $crate::hlist::HNil: HNil, ) -> Result<Results, RuntimeError>

Calls the function from this instance using the specified parameters.
source§

fn load_function(&mut self, name: &str) -> Result<Self::Function, RuntimeError>

Loads a function from the guest Wasm instance.
source§

impl<UserData: 'static> InstanceWithMemory for ReentrantInstance<'_, UserData>

source§

fn memory_from_export( &self, export: Extern, ) -> Result<Option<Memory>, RuntimeError>

Converts an export into the runtime’s specific memory type.
source§

fn memory(&mut self) -> Result<Memory<'_, Self>, RuntimeError>

Returns the memory export from the current Wasm module instance.