pub struct ToolExecutor { /* private fields */ }Expand description
Stateful executor that handles incoming ToolRequests by dispatching to
the appropriate subsystem.
Implementations§
Source§impl ToolExecutor
impl ToolExecutor
Sourcepub fn execute(&mut self, request: &ToolRequest) -> ToolResponse
pub fn execute(&mut self, request: &ToolRequest) -> ToolResponse
Execute a tool request and return a response with timing.
Sourcepub fn index(&self) -> &SpatialIndex
pub fn index(&self) -> &SpatialIndex
Access the internal spatial index (e.g. for testing).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolExecutor
impl RefUnwindSafe for ToolExecutor
impl Send for ToolExecutor
impl Sync for ToolExecutor
impl Unpin for ToolExecutor
impl UnsafeUnpin for ToolExecutor
impl UnwindSafe for ToolExecutor
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