pub struct SandboxConfig {
pub root: PathBuf,
pub memory_limit: Option<u64>,
pub cpu_quota: Option<u64>,
pub cpu_period: Option<u64>,
pub max_pids: Option<u32>,
pub seccomp_profile: SeccompProfile,
pub namespace_config: NamespaceConfig,
pub timeout: Option<Duration>,
pub id: String,
}Expand description
Sandbox configuration
Fields§
§root: PathBufRoot directory for sandbox
memory_limit: Option<u64>Memory limit in bytes
cpu_quota: Option<u64>CPU quota (microseconds)
cpu_period: Option<u64>CPU period (microseconds)
max_pids: Option<u32>Maximum PIDs
seccomp_profile: SeccompProfileSeccomp profile
namespace_config: NamespaceConfigNamespace configuration
timeout: Option<Duration>Timeout
id: StringUnique sandbox ID
Implementations§
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 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