pub struct SandboxConfig {
pub max_memory_bytes: usize,
pub max_cpu_time_secs: u64,
pub max_call_duration: Duration,
pub allow_network: bool,
pub allow_filesystem: bool,
pub allowed_syscalls: Vec<u32>,
}Expand description
Sandbox configuration.
Fields§
§max_memory_bytes: usizeMaximum memory usage (bytes).
max_cpu_time_secs: u64Maximum CPU time (seconds).
max_call_duration: DurationMaximum execution time per call.
allow_network: boolWhether network access is allowed.
allow_filesystem: boolWhether file system access is allowed.
allowed_syscalls: Vec<u32>Allowed syscalls (empty = all allowed).
Trait Implementations§
Source§impl Clone for SandboxConfig
impl Clone for SandboxConfig
Source§fn clone(&self) -> SandboxConfig
fn clone(&self) -> SandboxConfig
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 SandboxConfig
impl Debug for SandboxConfig
Auto Trait Implementations§
impl Freeze for SandboxConfig
impl RefUnwindSafe for SandboxConfig
impl Send for SandboxConfig
impl Sync for SandboxConfig
impl Unpin for SandboxConfig
impl UnsafeUnpin for SandboxConfig
impl UnwindSafe for SandboxConfig
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