pub struct EngineConfig {
pub optimization_level: OptimizationLevel,
pub memory_config: MemoryConfig,
pub timeout: Option<Duration>,
pub strict_mode: bool,
pub module_system: ModuleSystem,
pub security_level: SecurityLevel,
pub enable_debugging: bool,
pub enable_profiling: bool,
pub allow_unsafe_operations: bool,
pub max_execution_depth: usize,
pub max_loop_iterations: usize,
}Fields§
§optimization_level: OptimizationLevel§memory_config: MemoryConfig§timeout: Option<Duration>§strict_mode: bool§module_system: ModuleSystem§security_level: SecurityLevel§enable_debugging: bool§enable_profiling: bool§allow_unsafe_operations: bool§max_execution_depth: usize§max_loop_iterations: usizeImplementations§
Source§impl EngineConfig
impl EngineConfig
pub fn new() -> Self
pub fn with_optimization(self, level: OptimizationLevel) -> Self
pub fn with_memory_config(self, config: MemoryConfig) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_strict_mode(self, strict: bool) -> Self
pub fn with_module_system(self, system: ModuleSystem) -> Self
pub fn with_security_level(self, level: SecurityLevel) -> Self
pub fn with_debugging(self, enable: bool) -> Self
pub fn with_profiling(self, enable: bool) -> Self
pub fn with_execution_limits( self, max_depth: usize, max_iterations: usize, ) -> Self
pub fn is_production_ready(&self) -> bool
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
Returns a copy 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 EngineConfig
impl Debug for EngineConfig
Source§impl Default for EngineConfig
impl Default for EngineConfig
Source§impl<'de> Deserialize<'de> for EngineConfig
impl<'de> Deserialize<'de> for EngineConfig
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 EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnwindSafe for EngineConfig
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