pub struct ExecSandboxContext {
pub workspace_path: PathBuf,
pub cwd: Option<PathBuf>,
pub profile: SandboxProfile,
pub egress: Vec<String>,
}Expand description
Per-session/per-call context handed to a ProcessSandbox.
cwd is Option per C4: None means “use workspace_path”.
Fields§
§workspace_path: PathBufThe session workspace root (canonical).
cwd: Option<PathBuf>Per-call working directory; None ⇒ workspace_path. Carried
explicitly because a parent’s current_dir does not survive a
mount-namespace pivot (bubblewrap --chdir).
profile: SandboxProfileThe profile requested for this session.
egress: Vec<String>Explicit egress allowlist (host:port or *), forwarded to backends
that do network filtering.
Trait Implementations§
Source§impl Clone for ExecSandboxContext
impl Clone for ExecSandboxContext
Source§fn clone(&self) -> ExecSandboxContext
fn clone(&self) -> ExecSandboxContext
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 moreAuto Trait Implementations§
impl Freeze for ExecSandboxContext
impl RefUnwindSafe for ExecSandboxContext
impl Send for ExecSandboxContext
impl Sync for ExecSandboxContext
impl Unpin for ExecSandboxContext
impl UnsafeUnpin for ExecSandboxContext
impl UnwindSafe for ExecSandboxContext
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