[][src]Crate sc_executor

A crate that provides means of executing/dispatching calls into the runtime.

There are a few responsibilities of this crate at the moment:

Re-exports

pub use wasmi;

Modules

error

Rust executor possible errors.

sandbox

This module implements sandboxing support in the runtime.

Macros

native_executor_instance

Implements a NativeExecutionDispatch for provided parameters.

Structs

NativeExecutor

A generic CodeExecutor implementation that uses a delegate to determine wasm code equivalence and dispatch to native code when possible, falling back on WasmExecutor when not.

NativeVersion
RuntimeVersion

Runtime version. This should not be thought of as classic Semver (major/minor/tiny). This triplet have different semantics and mis-interpretation could cause problems. In particular: bug fixes should result in an increment of spec_version and possibly authoring_version, absolutely not impl_version since they change the semantics of the runtime.

WasmExecutor

An abstraction over Wasm code executor. Supports selecting execution backend and manages runtime cache.

Enums

WasmExecutionMethod

Specification of different methods of executing the runtime Wasm code.

Traits

Codec

Trait that allows zero-copy read/write of value-references to/from slices in LE format.

NativeExecutionDispatch

Delegate for dispatching a CodeExecutor call.

RuntimeInfo

Provides runtime information.

Functions

with_externalities_safe

Set up the externalities and safe calling environment to execute runtime calls.