pub enum SandboxPolicy {
ReadOnly,
WorkspaceWrite,
DangerFullAccess,
}Expand description
Filesystem confinement applied to write-capable tools — the analog of
Codex’s read-only / workspace-write / danger-full-access sandbox modes.
Enforced at the tool layer for file operations (write_file, edit_file,
apply_patch). Note: this confines the file tools; it does not OS-sandbox
arbitrary subprocesses (bash/shell) — true process isolation needs
platform primitives (seatbelt/landlock) and is a separate concern.
Variants§
ReadOnly
No file writes are permitted by the file tools.
WorkspaceWrite
Writes are permitted only inside the working directory.
DangerFullAccess
No confinement (default — preserves prior behavior).
Trait Implementations§
Source§impl Clone for SandboxPolicy
impl Clone for SandboxPolicy
Source§fn clone(&self) -> SandboxPolicy
fn clone(&self) -> SandboxPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SandboxPolicy
Source§impl Debug for SandboxPolicy
impl Debug for SandboxPolicy
Source§impl Default for SandboxPolicy
impl Default for SandboxPolicy
Source§fn default() -> SandboxPolicy
fn default() -> SandboxPolicy
Returns the “default value” for a type. Read more
impl Eq for SandboxPolicy
Source§impl PartialEq for SandboxPolicy
impl PartialEq for SandboxPolicy
Source§fn eq(&self, other: &SandboxPolicy) -> bool
fn eq(&self, other: &SandboxPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SandboxPolicy
Auto Trait Implementations§
impl Freeze for SandboxPolicy
impl RefUnwindSafe for SandboxPolicy
impl Send for SandboxPolicy
impl Sync for SandboxPolicy
impl Unpin for SandboxPolicy
impl UnsafeUnpin for SandboxPolicy
impl UnwindSafe for SandboxPolicy
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