pub struct SandboxCommand { /* private fields */ }Expand description
Run a command within a Codex-provided sandbox.
Implementations§
Source§impl SandboxCommand
impl SandboxCommand
Sourcepub fn new(platform: SandboxPlatform, command: impl Into<String>) -> Self
pub fn new(platform: SandboxPlatform, command: impl Into<String>) -> Self
Create a sandbox command for the given platform and command.
Sourcepub fn args(self, args: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn args(self, args: impl IntoIterator<Item = impl Into<String>>) -> Self
Add multiple arguments to the sandboxed command.
Trait Implementations§
Source§impl Clone for SandboxCommand
impl Clone for SandboxCommand
Source§fn clone(&self) -> SandboxCommand
fn clone(&self) -> SandboxCommand
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 CodexCommand for SandboxCommand
impl CodexCommand for SandboxCommand
Auto Trait Implementations§
impl Freeze for SandboxCommand
impl RefUnwindSafe for SandboxCommand
impl Send for SandboxCommand
impl Sync for SandboxCommand
impl Unpin for SandboxCommand
impl UnsafeUnpin for SandboxCommand
impl UnwindSafe for SandboxCommand
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