pub struct BasicSandbox { /* private fields */ }Expand description
Basic sandboxed command wrapper
Phase 1 implementation: Executes commands directly but with output capture and timeout support.
Implementations§
Source§impl BasicSandbox
impl BasicSandbox
Sourcepub fn with_working_dir(self, dir: String) -> Self
pub fn with_working_dir(self, dir: String) -> Self
Set the working directory
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set the timeout
Sourcepub fn from_command_string(cmd: &str) -> Result<Self>
pub fn from_command_string(cmd: &str) -> Result<Self>
Parse a command string into program and args
Trait Implementations§
Source§impl SandboxedCommand for BasicSandbox
impl SandboxedCommand for BasicSandbox
Auto Trait Implementations§
impl Freeze for BasicSandbox
impl RefUnwindSafe for BasicSandbox
impl Send for BasicSandbox
impl Sync for BasicSandbox
impl Unpin for BasicSandbox
impl UnwindSafe for BasicSandbox
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