pub struct SubprocessBackendConfig { /* private fields */ }Expand description
Low-level OS/kernel configuration for subprocess execution.
Controls resource limits, security policies, and isolation mechanisms. All fields are optional — if not specified, the subprocess inherits parent process settings.
§Also
SubprocessRunnerrunner that consumes this config.RlimitConfigPOSIX rlimit knobs.CgroupLimitscgroup v2 knobs.SecurityConfigcapabilities / seccomp.LogConfigstdout/stderr log settings.
Implementations§
Source§impl SubprocessBackendConfig
impl SubprocessBackendConfig
Sourcepub fn with_rlimits(self, rlimits: RlimitConfig) -> Self
pub fn with_rlimits(self, rlimits: RlimitConfig) -> Self
Set rlimits.
Sourcepub fn with_cgroups(self, cgroups: CgroupLimits) -> Self
pub fn with_cgroups(self, cgroups: CgroupLimits) -> Self
Set cgroup limits.
Sourcepub fn with_security(self, security: SecurityConfig) -> Self
pub fn with_security(self, security: SecurityConfig) -> Self
Set security hardening.
Sourcepub fn with_logger(self, config: LogConfig) -> Self
pub fn with_logger(self, config: LogConfig) -> Self
Set logger configuration.
Trait Implementations§
Source§impl Clone for SubprocessBackendConfig
impl Clone for SubprocessBackendConfig
Source§fn clone(&self) -> SubprocessBackendConfig
fn clone(&self) -> SubprocessBackendConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubprocessBackendConfig
impl Debug for SubprocessBackendConfig
Source§impl Default for SubprocessBackendConfig
impl Default for SubprocessBackendConfig
Source§fn default() -> SubprocessBackendConfig
fn default() -> SubprocessBackendConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubprocessBackendConfig
impl RefUnwindSafe for SubprocessBackendConfig
impl Send for SubprocessBackendConfig
impl Sync for SubprocessBackendConfig
impl Unpin for SubprocessBackendConfig
impl UnsafeUnpin for SubprocessBackendConfig
impl UnwindSafe for SubprocessBackendConfig
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