pub struct SandboxOptions {
pub sandbox_dir: PathBuf,
pub allowed_env_keys: Vec<String>,
pub timeout_ms: u64,
pub max_output_bytes: usize,
}Fields§
§sandbox_dir: PathBufWorking directory for all subprocesses; isolated from the host file system by convention.
allowed_env_keys: Vec<String>Host env-var names forwarded into subprocesses. Default: none.
timeout_ms: u64Per-call hard timeout in ms. Default: 30 000.
max_output_bytes: usizeTruncate stdout+stderr after this many bytes. Default: 1 MiB.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SandboxOptions
impl RefUnwindSafe for SandboxOptions
impl Send for SandboxOptions
impl Sync for SandboxOptions
impl Unpin for SandboxOptions
impl UnsafeUnpin for SandboxOptions
impl UnwindSafe for SandboxOptions
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