pub struct SandboxBuilder { /* private fields */ }Expand description
Builder pattern for sandbox creation
Implementations§
Source§impl SandboxBuilder
impl SandboxBuilder
Sourcepub fn memory_limit(self, bytes: u64) -> Self
pub fn memory_limit(self, bytes: u64) -> Self
Set memory limit
Sourcepub fn memory_limit_str(self, s: &str) -> Result<Self>
pub fn memory_limit_str(self, s: &str) -> Result<Self>
Set memory limit from string (e.g., “100M”)
Sourcepub fn cpu_limit_percent(self, percent: u32) -> Self
pub fn cpu_limit_percent(self, percent: u32) -> Self
Set CPU limit by percentage (0-100)
Sourcepub fn seccomp_profile(self, profile: SeccompProfile) -> Self
pub fn seccomp_profile(self, profile: SeccompProfile) -> Self
Set seccomp profile
Sourcepub fn namespaces(self, config: NamespaceConfig) -> Self
pub fn namespaces(self, config: NamespaceConfig) -> Self
Set namespace configuration
Auto Trait Implementations§
impl Freeze for SandboxBuilder
impl RefUnwindSafe for SandboxBuilder
impl Send for SandboxBuilder
impl Sync for SandboxBuilder
impl Unpin for SandboxBuilder
impl UnwindSafe for SandboxBuilder
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