pub struct EditTool { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Tool for EditTool
impl Tool for EditTool
Source§fn writes(&self, call: &ToolCall) -> Writes
fn writes(&self, call: &ToolCall) -> Writes
The one file the call names. A path that does not parse wrote
nothing, since invoke refuses it before touching the disk, but
the answer stays Domain so that no reading of it can come out
narrower than the truth.
fn meta(&self) -> &ToolMeta
Source§fn invoke(&self, call: &ToolCall) -> Result<ToolOutcome, AxError>
fn invoke(&self, call: &ToolCall) -> Result<ToolOutcome, AxError>
Fail-closed identity: a call whose name differs from
meta().name
must return E_INVALID_ARGS, never route silently.Auto Trait Implementations§
impl Freeze for EditTool
impl RefUnwindSafe for EditTool
impl Send for EditTool
impl Sync for EditTool
impl Unpin for EditTool
impl UnsafeUnpin for EditTool
impl UnwindSafe for EditTool
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