pub struct ProcessSandboxPlane { /* private fields */ }Expand description
LocalExecutionPlane extended with two subprocess built-in tools:
run_bash— executes a bash command insidesandbox_dir.run_python— evaluates a Python script insidesandbox_dir.
All registered Rust tools still run in-process (identical to LocalExecutionPlane).
Subprocesses are launched with sandbox_dir as cwd and a stripped environment.
This is an execution hygiene boundary, not an OS-enforced filesystem sandbox.
Implementations§
Source§impl ProcessSandboxPlane
impl ProcessSandboxPlane
pub fn new(opts: SandboxOptions) -> Self
pub fn register(&mut self, tool: RegisteredTool) -> &mut Self
pub fn unregister(&mut self, name: &str) -> &mut Self
Trait Implementations§
Source§impl ExecutionPlane for ProcessSandboxPlane
impl ExecutionPlane for ProcessSandboxPlane
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessSandboxPlane
impl !UnwindSafe for ProcessSandboxPlane
impl Freeze for ProcessSandboxPlane
impl Send for ProcessSandboxPlane
impl Sync for ProcessSandboxPlane
impl Unpin for ProcessSandboxPlane
impl UnsafeUnpin for ProcessSandboxPlane
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