Skip to main content

moe_plugin_sdk/security/
sandbox.rs

1pub struct PluginSandbox {
2    pub memory_limit_mb: u64,
3    pub cpu_time_budget_ms: u64,
4}
5
6impl PluginSandbox {
7    pub fn new(memory_limit_mb: u64, cpu_time_budget_ms: u64) -> Self {
8        Self {
9            memory_limit_mb,
10            cpu_time_budget_ms,
11        }
12    }
13}