pub struct ExecutionLimits {
pub max_timeout_ms: u64,
pub max_memory_mb: u32,
pub max_output_bytes: usize,
pub max_operations: u64,
pub max_call_depth: u32,
pub max_string_length: usize,
pub max_array_length: usize,
pub max_map_size: usize,
}Expand description
Execution limits for sandboxing
Fields§
§max_timeout_ms: u64Maximum execution time in milliseconds
max_memory_mb: u32Maximum memory usage in MB
max_output_bytes: usizeMaximum output size in bytes
max_operations: u64Maximum number of operations (for loop prevention)
max_call_depth: u32Maximum call stack depth
max_string_length: usizeMaximum string length
max_array_length: usizeMaximum array/list length
max_map_size: usizeMaximum map/dict entries
Implementations§
Trait Implementations§
Source§impl Clone for ExecutionLimits
impl Clone for ExecutionLimits
Source§fn clone(&self) -> ExecutionLimits
fn clone(&self) -> ExecutionLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionLimits
impl Debug for ExecutionLimits
Source§impl Default for ExecutionLimits
impl Default for ExecutionLimits
Source§impl<'de> Deserialize<'de> for ExecutionLimits
impl<'de> Deserialize<'de> for ExecutionLimits
Source§fn 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 Freeze for ExecutionLimits
impl RefUnwindSafe for ExecutionLimits
impl Send for ExecutionLimits
impl Sync for ExecutionLimits
impl Unpin for ExecutionLimits
impl UnsafeUnpin for ExecutionLimits
impl UnwindSafe for ExecutionLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more