Struct wasmedge_sdk::Executor
source · pub struct Executor { /* private fields */ }
Expand description
Defines an execution environment for both pure WASM and compiled WASM.
Implementations§
source§impl Executor
impl Executor
sourcepub fn new(
config: Option<&Config>,
stat: Option<&mut Statistics>
) -> WasmEdgeResult<Self>
pub fn new(
config: Option<&Config>,
stat: Option<&mut Statistics>
) -> WasmEdgeResult<Self>
Creates a new executor to be associated with the given config and statistics.
Arguments
-
config
specifies the configuration of the new executor. -
stat
specifies the statistics needed by the new executor.
Error
If fail to create a executor, then an error is returned.