Struct parity_wasm::interpreter::ExecutionParams
[−]
[src]
pub struct ExecutionParams<'a, E: UserError> { pub args: Vec<RuntimeValue>, pub externals: HashMap<String, Arc<ModuleInstanceInterface<E> + 'a>>, }
Execution context.
Fields
args: Vec<RuntimeValue>
Arguments.
externals: HashMap<String, Arc<ModuleInstanceInterface<E> + 'a>>
Execution-local external modules.
Methods
impl<'a, E> ExecutionParams<'a, E> where
E: UserError,
[src]
E: UserError,
fn with_external(
name: String,
module: Arc<ModuleInstanceInterface<E> + 'a>
) -> Self
[src]
name: String,
module: Arc<ModuleInstanceInterface<E> + 'a>
) -> Self
Create new execution params with given externa; module override.
fn add_argument(self, arg: RuntimeValue) -> Self
[src]
Add argument.
Trait Implementations
impl<'a, E: Clone + UserError> Clone for ExecutionParams<'a, E>
[src]
fn clone(&self) -> ExecutionParams<'a, E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, E> Default for ExecutionParams<'a, E> where
E: UserError,
[src]
E: UserError,
impl<'a, E> From<Vec<RuntimeValue>> for ExecutionParams<'a, E> where
E: UserError,
[src]
E: UserError,
fn from(args: Vec<RuntimeValue>) -> ExecutionParams<'a, E>
[src]
Performs the conversion.