Struct wasmtime_environ::Tunables
source · [−]pub struct Tunables {
pub static_memory_bound: u64,
pub static_memory_offset_guard_size: u64,
pub dynamic_memory_offset_guard_size: u64,
pub dynamic_memory_growth_reserve: u64,
pub generate_native_debuginfo: bool,
pub parse_wasm_debuginfo: bool,
pub consume_fuel: bool,
pub epoch_interruption: bool,
pub static_memory_bound_is_maximum: bool,
pub guard_before_linear_memory: bool,
pub generate_address_map: bool,
}Expand description
Tunable parameters for WebAssembly compilation.
Fields
static_memory_bound: u64For static heaps, the size in wasm pages of the heap protected by bounds checking.
static_memory_offset_guard_size: u64The size in bytes of the offset guard for static heaps.
dynamic_memory_offset_guard_size: u64The size in bytes of the offset guard for dynamic heaps.
dynamic_memory_growth_reserve: u64The size, in bytes, of reserved memory at the end of a “dynamic” memory,
before the guard page, that memory can grow into. This is intended to
amortize the cost of memory.grow in the same manner that Vec<T> has
space not in use to grow into.
generate_native_debuginfo: boolWhether or not to generate native DWARF debug information.
parse_wasm_debuginfo: boolWhether or not to retain DWARF sections in compiled modules.
consume_fuel: boolWhether or not fuel is enabled for generated code, meaning that fuel will be consumed every time a wasm instruction is executed.
epoch_interruption: boolWhether or not we use epoch-based interruption.
static_memory_bound_is_maximum: boolWhether or not to treat the static memory bound as the maximum for unbounded heaps.
guard_before_linear_memory: boolWhether or not linear memory allocations will have a guard region at the beginning of the allocation in addition to the end.
generate_address_map: boolIndicates whether an address map from compiled native code back to wasm offsets in the original file is generated.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Tunables
impl<'de> Deserialize<'de> for Tunables
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more