pub struct ChildWorkspaceScope { /* private fields */ }Expand description
Parent-authored workspace scope carried into child runtime construction.
Implementations§
Source§impl ChildWorkspaceScope
impl ChildWorkspaceScope
Sourcepub fn workspace_root() -> Self
pub fn workspace_root() -> Self
Returns the unrestricted workspace scope inherited by a root agent.
Sourcepub fn from_task(task: &SubagentTaskSpec) -> Self
pub fn from_task(task: &SubagentTaskSpec) -> Self
Creates a workspace scope snapshot from a validated subagent task spec.
Sourcepub fn read_scope(&self) -> &[PathBuf]
pub fn read_scope(&self) -> &[PathBuf]
Returns the advisory workspace-relative read scope.
Sourcepub fn write_scope(&self) -> &[PathBuf]
pub fn write_scope(&self) -> &[PathBuf]
Returns the workspace-relative write scope.
Sourcepub fn forbidden_paths(&self) -> &[PathBuf]
pub fn forbidden_paths(&self) -> &[PathBuf]
Returns workspace-relative paths the child must not access.
Sourcepub const fn workspace_mode(&self) -> SubagentWorkspaceMode
pub const fn workspace_mode(&self) -> SubagentWorkspaceMode
Returns the child’s effective workspace isolation mode (shared or worktree).
Trait Implementations§
Source§impl Clone for ChildWorkspaceScope
impl Clone for ChildWorkspaceScope
Source§impl Debug for ChildWorkspaceScope
impl Debug for ChildWorkspaceScope
impl Eq for ChildWorkspaceScope
Source§impl PartialEq for ChildWorkspaceScope
impl PartialEq for ChildWorkspaceScope
impl StructuralPartialEq for ChildWorkspaceScope
Auto Trait Implementations§
impl Forget for ChildWorkspaceScope
impl Freeze for ChildWorkspaceScope
impl Move for ChildWorkspaceScope
impl RefUnwindSafe for ChildWorkspaceScope
impl Send for ChildWorkspaceScopewhere
RawVecInner: Send,
impl Sync for ChildWorkspaceScopewhere
RawVecInner: Sync,
impl Unpin for ChildWorkspaceScope
impl UnsafeUnpin for ChildWorkspaceScope
impl UnwindSafe for ChildWorkspaceScopewhere
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.