pub enum Isolation {
None,
Changes,
Process,
}Expand description
What a backend actually enforces — as distinct from the FsPolicy /
NetPolicy it requests. A policy the kernel doesn’t enforce is not
isolation, so callers should branch on this, not on the requested policy.
Variants§
None
Nothing is enforced; the agent has host access.
Changes
Only changes are isolated (e.g. a git worktree/branch). Capability is not restricted — commands can still read/write/network the host.
Process
Shell subprocesses are confined by the kernel or a container (Seatbelt / Landlock / Docker). In-process fs tools are jailed separately.
Trait Implementations§
impl Copy for Isolation
impl Eq for Isolation
impl StructuralPartialEq for Isolation
Auto Trait Implementations§
impl Forget for Isolation
impl Freeze for Isolation
impl RefUnwindSafe for Isolation
impl Send for Isolation
impl Sync for Isolation
impl Unpin for Isolation
impl UnsafeUnpin for Isolation
impl UnwindSafe for Isolation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.