pub struct AsyncFnTool<F, Fut>where
F: Fn(Value) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<Value, String>> + Send + 'static,{ /* private fields */ }Expand description
Async function-based tool
Implementations§
Trait Implementations§
Source§impl<F, Fut> ToolHandler for AsyncFnTool<F, Fut>
impl<F, Fut> ToolHandler for AsyncFnTool<F, Fut>
Auto Trait Implementations§
impl<F, Fut> Freeze for AsyncFnTool<F, Fut>where
F: Freeze,
impl<F, Fut> RefUnwindSafe for AsyncFnTool<F, Fut>where
F: RefUnwindSafe,
impl<F, Fut> Send for AsyncFnTool<F, Fut>
impl<F, Fut> Sync for AsyncFnTool<F, Fut>
impl<F, Fut> Unpin for AsyncFnTool<F, Fut>where
F: Unpin,
impl<F, Fut> UnsafeUnpin for AsyncFnTool<F, Fut>where
F: UnsafeUnpin,
impl<F, Fut> UnwindSafe for AsyncFnTool<F, Fut>where
F: 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