optirs_core/plugin/loader/sandboxconfig_traits.rs
1//! # `SandboxConfig` - Trait Implementations
2//!
3//! This module contains trait implementations for `SandboxConfig`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use std::path::PathBuf;
12
13use super::types_7::SandboxConfig;
14
15impl Default for SandboxConfig {
16 fn default() -> Self {
17 Self {
18 process_isolation: false,
19 memory_limit: 512 * 1024 * 1024, // 512MB
20 cpu_time_limit: 60.0, // 60 seconds
21 network_access: false,
22 filesystem_access: vec![PathBuf::from("./tmp")],
23 }
24 }
25}