pub struct RuntimeOptions {
pub heap: HeapLimits,
pub min_heap: usize,
pub growth: f64,
pub stack_limit: u32,
pub native_stack_budget: usize,
pub native_depth_limit: u32,
}Expand description
How a runtime is configured. Default is the behavior every runtime had
before the options existed.
Fields§
§heap: HeapLimitsThe heap cap; usize::MAX bytes for none.
min_heap: usizeThe reserved-bytes budget’s floor, in bytes.
growth: f64A collection that leaves live bytes allows growth × live more to
be allocated before the next: the budget is (1 + growth) × live.
stack_limit: u32Registers the register file may hold before a call fails with
InternalError: stack overflow.
native_stack_budget: usizeBytes of host stack nested re-entries into the loop may use.
native_depth_limit: u32Nested re-entries into the loop allowed at most (unbounded by default): for a host whose stack the byte measure cannot see, such as a WebAssembly engine’s.
Trait Implementations§
Source§impl Clone for RuntimeOptions
impl Clone for RuntimeOptions
impl Copy for RuntimeOptions
Source§impl Debug for RuntimeOptions
impl Debug for RuntimeOptions
Source§impl Default for RuntimeOptions
impl Default for RuntimeOptions
Source§impl From<HeapLimits> for RuntimeOptions
impl From<HeapLimits> for RuntimeOptions
Source§fn from(heap: HeapLimits) -> Self
fn from(heap: HeapLimits) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RuntimeOptions
impl PartialEq for RuntimeOptions
impl StructuralPartialEq for RuntimeOptions
Auto Trait Implementations§
impl Freeze for RuntimeOptions
impl RefUnwindSafe for RuntimeOptions
impl Send for RuntimeOptions
impl Sync for RuntimeOptions
impl Unpin for RuntimeOptions
impl UnsafeUnpin for RuntimeOptions
impl UnwindSafe for RuntimeOptions
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