Struct sc_executor_wasmtime::Config
source · pub struct Config {
pub allow_missing_func_imports: bool,
pub cache_path: Option<PathBuf>,
pub semantics: Semantics,
}
Fields§
§allow_missing_func_imports: bool
The WebAssembly standard requires all imports of an instantiated module to be resolved,
otherwise, the instantiation fails. If this option is set to true
, then this behavior is
overriden and imports that are requested by the module and not provided by the host
functions will be resolved using stubs. These stubs will trap upon a call.
cache_path: Option<PathBuf>
A directory in which wasmtime can store its compiled artifacts cache.
semantics: Semantics
Tuning of various semantics of the wasmtime executor.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.