pub struct CallPlace {
pub workspace: Arc<dyn Workspace>,
pub base: PathBuf,
pub confine: bool,
pub live: Option<Live>,
pub spill: Option<Spill>,
}Expand description
Where one call of a tool registered with
add_tool_per_call works.
Fields§
§workspace: Arc<dyn Workspace>The app’s workspace (ProjectWorkspace), or the one a plugin
builds the call on with PerCallTools, such as an overlay of it
for a call that is previewed (rig-basics’ Preview).
base: PathBufThe calling agent’s WorkDir, else the ProjectRoot: relative
paths resolve and commands start here.
confine: boolWhether base is a WorkDir, outside which the call refuses paths.
live: Option<Live>Where the call reports its output as it comes, for a tool
registered with add_live_tool_per_call;
read by the front as the call’s CallOutput. None from
PerCallTools::place; the harness sets it for a call it runs.
spill: Option<Spill>Where output cut short is kept whole, if anywhere
(Scratch::spill). None from PerCallTools::place; the
harness sets it for a call it runs.
Auto Trait Implementations§
impl !RefUnwindSafe for CallPlace
impl !UnwindSafe for CallPlace
impl Freeze for CallPlace
impl Send for CallPlace
impl Sync for CallPlace
impl Unpin for CallPlace
impl UnsafeUnpin for CallPlace
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
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.