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 used for each Runtime execution.
Fields§
§timeout: DurationMaximum wall-clock time allowed for one execution.
checkpoint_interval: u32Number of interpreter checkpoints between timeout-provider checks.
max_call_depth: u32Maximum nested script and native 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
Auto 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