pub struct SandboxConfig {
pub id: String,
pub working_dir: Option<String>,
pub env: Vec<(String, String)>,
pub copy_dirs: Vec<(PathBuf, PathBuf)>,
}Expand description
Runtime configuration passed to sandbox creation.
This struct is used internally by the orchestrator to configure each sandbox instance. It contains the runtime-specific settings derived from the main configuration.
Unlike the TOML configuration structs, this is not serializable and is constructed programmatically.
Fields§
§id: StringUnique identifier for this sandbox instance.
Used for tracking, logging, and cleanup. Typically a UUID.
working_dir: Option<String>Working directory inside the sandbox.
Test commands will execute from this directory.
env: Vec<(String, String)>Environment variables to set in the sandbox.
Passed as key-value tuples.
copy_dirs: Vec<(PathBuf, PathBuf)>Directories to copy to the sandbox.
Each tuple is (local_path, remote_path).
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 moreAuto 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