pub struct NixConfig {
pub timeout_secs: u64,
pub max_output_bytes: usize,
pub max_stderr_bytes: usize,
pub isolation: IsolationBackend,
}Expand description
Tunable knobs for the NixExecutor.
Fields§
§timeout_secs: u64Wall-clock timeout for a single stage execution in seconds. The child process is killed with SIGKILL when exceeded. Default: 30 s.
max_output_bytes: usizeMaximum number of bytes read from a stage’s stdout before truncation. Prevents runaway allocations from stages that produce huge outputs. Default: 10 MiB.
max_stderr_bytes: usizeMaximum number of bytes captured from stderr (for error messages). Default: 64 KiB.
isolation: IsolationBackendIsolation backend to wrap each stage subprocess in. When set
to super::isolation::IsolationBackend::None (the default
for back-compat), stages run with full host-user privileges
— see SECURITY.md. Set via
NixConfig::with_isolation or the CLI --isolate flag.
Implementations§
Source§impl NixConfig
impl NixConfig
Sourcepub fn with_isolation(self, backend: IsolationBackend) -> Self
pub fn with_isolation(self, backend: IsolationBackend) -> Self
Set the isolation backend. Returns self for chaining.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NixConfig
impl RefUnwindSafe for NixConfig
impl Send for NixConfig
impl Sync for NixConfig
impl Unpin for NixConfig
impl UnsafeUnpin for NixConfig
impl UnwindSafe for NixConfig
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