#[non_exhaustive]pub enum BgIsolation {
Worktree,
None,
}Expand description
Background subagent isolation mode.
Controls whether background subagents (spawned implicitly, not by an explicit user command) receive an isolated git worktree or edit the shared working copy.
§Examples
use zeph_config::BgIsolation;
// Default is Worktree — background agents are fully isolated.
let iso = BgIsolation::default();
assert!(matches!(iso, BgIsolation::Worktree));Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Worktree
Background subagents receive an isolated git worktree (default).
This is the recommended setting — it prevents background agents from accidentally editing files that the user is working on.
None
Background subagents edit the working copy directly, without a worktree.
Use only when worktrees are impractical for the repository (e.g., bare clones or repos with hooks that break under worktrees).
Trait Implementations§
Source§impl Clone for BgIsolation
impl Clone for BgIsolation
Source§fn clone(&self) -> BgIsolation
fn clone(&self) -> BgIsolation
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 BgIsolation
Source§impl Debug for BgIsolation
impl Debug for BgIsolation
Source§impl Default for BgIsolation
impl Default for BgIsolation
Source§fn default() -> BgIsolation
fn default() -> BgIsolation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BgIsolation
impl<'de> Deserialize<'de> for BgIsolation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BgIsolation
Source§impl PartialEq for BgIsolation
impl PartialEq for BgIsolation
Source§fn eq(&self, other: &BgIsolation) -> bool
fn eq(&self, other: &BgIsolation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BgIsolation
impl Serialize for BgIsolation
impl StructuralPartialEq for BgIsolation
Auto Trait Implementations§
impl Freeze for BgIsolation
impl RefUnwindSafe for BgIsolation
impl Send for BgIsolation
impl Sync for BgIsolation
impl Unpin for BgIsolation
impl UnsafeUnpin for BgIsolation
impl UnwindSafe for BgIsolation
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.