Struct wasmtime_environ::Tunables
source · [−]pub struct Tunables {
pub static_memory_bound: u32,
pub static_memory_offset_guard_size: u64,
pub dynamic_memory_offset_guard_size: u64,
pub generate_native_debuginfo: bool,
pub parse_wasm_debuginfo: bool,
pub interruptable: bool,
}
Expand description
Tunable parameters for WebAssembly compilation.
Fields
static_memory_bound: u32
For static heaps, the size in wasm pages of the heap protected by bounds checking.
static_memory_offset_guard_size: u64
The size in bytes of the offset guard for static heaps.
dynamic_memory_offset_guard_size: u64
The size in bytes of the offset guard for dynamic heaps.
generate_native_debuginfo: bool
Whether or not to generate native DWARF debug information.
parse_wasm_debuginfo: bool
Whether or not to retain DWARF sections in compiled modules.
interruptable: bool
Whether or not to enable the ability to interrupt wasm code dynamically.
More info can be found about the implementation in
crates/environ/src/cranelift.rs. Note that you can’t interrupt host
calls and interrupts are implemented through the VMInterrupts
structure, or InterruptHandle
in the wasmtime
crate.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tunables
impl Send for Tunables
impl Sync for Tunables
impl Unpin for Tunables
impl UnwindSafe for Tunables
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more