pub struct SecurityConfig {
pub sandbox_enabled: bool,
pub reentrancy_protection: bool,
pub overflow_detection: bool,
pub access_control_verification: bool,
pub max_call_depth: u32,
pub max_external_calls: u32,
pub gas_limit_enforcement: bool,
pub max_gas_limit: u64,
pub memory_limit_enforcement: bool,
pub max_memory_bytes: u64,
}Expand description
Security configuration for runtime execution
Fields§
§sandbox_enabled: boolEnable execution sandboxing
reentrancy_protection: boolEnable reentrancy protection
overflow_detection: boolEnable integer overflow detection
access_control_verification: boolEnable access control verification
max_call_depth: u32Maximum call depth to prevent stack overflow
max_external_calls: u32Maximum number of external calls per transaction
gas_limit_enforcement: boolEnable gas limit enforcement
max_gas_limit: u64Maximum gas limit
memory_limit_enforcement: boolEnable memory limit enforcement
max_memory_bytes: u64Maximum memory usage in bytes
Implementations§
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
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 SecurityConfig
impl Debug for SecurityConfig
Source§impl Default for SecurityConfig
impl Default for SecurityConfig
Source§impl<'de> Deserialize<'de> for SecurityConfig
impl<'de> Deserialize<'de> for SecurityConfig
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 SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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