pub struct ChildWorkspacePolicyOverride { /* private fields */ }Expand description
Child-session workspace overrides layered purely on top of the parent’s live baseline without disconnecting live reload propagation.
Implementations§
Source§impl ChildWorkspacePolicyOverride
impl ChildWorkspacePolicyOverride
Sourcepub fn new(workspace_writable: bool) -> Self
pub fn new(workspace_writable: bool) -> Self
Creates a child override intersecting workspace_writable.
Sourcepub fn with_workspace_root(self, root: impl Into<PathBuf>) -> Self
pub fn with_workspace_root(self, root: impl Into<PathBuf>) -> Self
Overrides the effective workspace root (used by worktree-isolated subagents), canonicalizing the root path once up front.
Sourcepub fn with_extra_path_rules(
self,
rules: impl IntoIterator<Item = PathAccessRule>,
) -> Self
pub fn with_extra_path_rules( self, rules: impl IntoIterator<Item = PathAccessRule>, ) -> Self
Appends child-specific static path rules (such as worktree .git baseline
rules), canonicalizing each path once up front.
Sourcepub const fn workspace_writable(&self) -> bool
pub const fn workspace_writable(&self) -> bool
Returns whether the child session is permitted to write to its workspace.
Trait Implementations§
Source§impl Clone for ChildWorkspacePolicyOverride
impl Clone for ChildWorkspacePolicyOverride
Auto Trait Implementations§
impl Forget for ChildWorkspacePolicyOverride
impl Freeze for ChildWorkspacePolicyOverride
impl Move for ChildWorkspacePolicyOverride
impl RefUnwindSafe for ChildWorkspacePolicyOverride
impl Send for ChildWorkspacePolicyOverridewhere
RawVecInner: Send,
impl Sync for ChildWorkspacePolicyOverridewhere
RawVecInner: Sync,
impl Unpin for ChildWorkspacePolicyOverride
impl UnsafeUnpin for ChildWorkspacePolicyOverridewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ResolvedPathRule>: UnsafeUnpin,
impl UnwindSafe for ChildWorkspacePolicyOverridewhere
RawVecInner: UnwindSafe,
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