pub struct ToolHandle<T: Tool> { /* private fields */ }Expand description
Type-safe handle for calling a tool natively without JSON serialization.
Obtained from ToolRegistry::handle.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for ToolHandle<T>
impl<T> RefUnwindSafe for ToolHandle<T>where
T: RefUnwindSafe,
impl<T> Send for ToolHandle<T>
impl<T> Sync for ToolHandle<T>
impl<T> Unpin for ToolHandle<T>where
T: Unpin,
impl<T> UnwindSafe for ToolHandle<T>where
T: 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