pub struct SafetyConfig {
pub call_timeout: Duration,
pub max_stack_depth: usize,
pub memory_limit: usize,
pub enforce_timeout: bool,
pub check_stack_depth: bool,
pub enforce_memory_limit: bool,
}Fields§
§call_timeout: Duration§max_stack_depth: usize§memory_limit: usize§enforce_timeout: bool§check_stack_depth: bool§enforce_memory_limit: boolImplementations§
Source§impl SafetyConfig
impl SafetyConfig
pub fn with_call_timeout(self, timeout: Duration) -> Self
pub fn with_max_stack_depth(self, depth: usize) -> Self
pub fn with_memory_limit(self, limit: usize) -> Self
pub fn with_timeout_enforcement(self, enabled: bool) -> Self
pub fn with_stack_depth_check(self, enabled: bool) -> Self
pub fn with_memory_limit_enforcement(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for SafetyConfig
impl Clone for SafetyConfig
Source§fn clone(&self) -> SafetyConfig
fn clone(&self) -> SafetyConfig
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 SafetyConfig
impl Debug for SafetyConfig
Auto Trait Implementations§
impl Freeze for SafetyConfig
impl RefUnwindSafe for SafetyConfig
impl Send for SafetyConfig
impl Sync for SafetyConfig
impl Unpin for SafetyConfig
impl UnsafeUnpin for SafetyConfig
impl UnwindSafe for SafetyConfig
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