pub struct Limits {
pub fuel: u64,
pub max_call_depth: usize,
pub max_total_registers: usize,
pub max_argument_count: u32,
pub max_heap_slots: usize,
pub max_heap_bytes: usize,
pub max_module_cells: usize,
pub max_dynamic_modules: usize,
pub max_microtasks: usize,
pub max_timers: usize,
}Expand description
Deterministic execution and allocation ceilings.
Fields§
§fuel: u64§max_call_depth: usize§max_total_registers: usize§max_argument_count: u32Ceiling on the length of a single call’s arguments array.
max_heap_slots: usize§max_heap_bytes: usize§max_module_cells: usizeCeiling on engine-owned module binding cells.
max_dynamic_modules: usizeCeiling on host-compiled scripts retained by one machine.
max_microtasks: usizeCeiling on queued microtasks.
max_timers: usizeCeiling on live timers armed at once.
Trait Implementations§
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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