pub struct WasmtimeConfig { /* private fields */ }Implementations§
Source§impl WasmtimeConfig
impl WasmtimeConfig
Sourcepub fn from_raw(config: Config) -> WasmtimeConfig
pub fn from_raw(config: Config) -> WasmtimeConfig
Constructs wasmtime config directly from wasmtime config. It forcefully enables async support, because the backend does not work with sync configs.
Sourcepub fn debug_info(&mut self, enable: bool) -> &mut WasmtimeConfig
pub fn debug_info(&mut self, enable: bool) -> &mut WasmtimeConfig
Configures whether DWARF debug information will be emitted during compilation.
By default this option is true.
Sourcepub fn epoch_interruption(&mut self, enable: bool) -> &mut WasmtimeConfig
pub fn epoch_interruption(&mut self, enable: bool) -> &mut WasmtimeConfig
Enables the epoch interruption mechanism. See Wasmtime docs for detailed explanation.
By default this option is true.
Sourcepub fn max_wasm_stack(&mut self, size: usize) -> &mut WasmtimeConfig
pub fn max_wasm_stack(&mut self, size: usize) -> &mut WasmtimeConfig
Configures the maximum amount of stack space available for executing WebAssembly code.
By default this option is 2 MiB.
Sourcepub fn async_wasm_stack(&mut self, size: usize) -> &mut WasmtimeConfig
pub fn async_wasm_stack(&mut self, size: usize) -> &mut WasmtimeConfig
Configures the size of the stacks used for asynchronous execution.
This setting configures the size of the stacks that are allocated for
asynchronous execution. The value cannot be less than max_wasm_stack.
By default this option is 2 MiB.
Sourcepub fn wasm_backtrace(&mut self, enable: bool) -> &mut WasmtimeConfig
pub fn wasm_backtrace(&mut self, enable: bool) -> &mut WasmtimeConfig
Configures whether the errors from the VM should collect the wasm backtrace and parse debug info.
By default this option is true.
Trait Implementations§
Source§impl Clone for WasmtimeConfig
impl Clone for WasmtimeConfig
Source§fn clone(&self) -> WasmtimeConfig
fn clone(&self) -> WasmtimeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for WasmtimeConfig
impl Default for WasmtimeConfig
Source§fn default() -> WasmtimeConfig
fn default() -> WasmtimeConfig
Auto Trait Implementations§
impl Freeze for WasmtimeConfig
impl !RefUnwindSafe for WasmtimeConfig
impl Send for WasmtimeConfig
impl Sync for WasmtimeConfig
impl Unpin for WasmtimeConfig
impl !UnwindSafe for WasmtimeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more