pub struct SandboxConfig {
pub image: String,
pub memory_mb: u32,
pub cpus: u32,
pub network: bool,
pub env: HashMap<String, String>,
}Expand description
Configuration for routing bash tool execution through an A3S Box sandbox.
Use SessionOptions::with_sandbox() to activate.
Requires the sandbox Cargo feature.
Fields§
§image: StringOCI image reference (e.g., "alpine:latest", "ubuntu:22.04").
memory_mb: u32Memory limit in megabytes (default: 512).
cpus: u32Number of vCPUs (default: 1).
network: boolEnable outbound networking (default: false — safer for agent workflows).
env: HashMap<String, String>Additional environment variables to inject into the sandbox.
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 UnsafeUnpin 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