pub struct RunOptions {
pub timeout: Duration,
pub checkpoint_interval: u32,
pub max_call_depth: u32,
pub max_array_len: usize,
pub providers: Rc<dyn RuntimeProviders>,
}Expand description
Limits and injectable providers for one execution.
Fields§
§timeout: DurationMaximum wall-clock time allowed for one execution.
checkpoint_interval: u32Number of interpreter checkpoints between timeout-provider checks.
Values below one are treated as one.
max_call_depth: u32Maximum nested script, native, and extern call depth.
max_array_len: usizeMaximum number of elements created by bounded array operations.
providers: Rc<dyn RuntimeProviders>Host implementation for random numbers, time, and debug output.
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§fn clone(&self) -> RunOptions
fn clone(&self) -> RunOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RunOptions
impl !Send for RunOptions
impl !Sync for RunOptions
impl !UnwindSafe for RunOptions
impl Freeze for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
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