Struct ToolRoute
#[non_exhaustive]pub struct ToolRoute<S> {
pub call: Arc<dyn for<'s> Fn(ToolCallContext<'s, S>) -> Pin<Box<dyn Future<Output = Result<CallToolResponse, ErrorData>> + Send + 's>> + Sync + Send>,
pub attr: Tool,
}Available on crate feature
mcp and non-WebAssembly only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.call: Arc<dyn for<'s> Fn(ToolCallContext<'s, S>) -> Pin<Box<dyn Future<Output = Result<CallToolResponse, ErrorData>> + Send + 's>> + Sync + Send>§attr: ToolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> !RefUnwindSafe for ToolRoute<S>
impl<S> !UnwindSafe for ToolRoute<S>
impl<S> Forget for ToolRoute<S>
impl<S> Freeze for ToolRoute<S>
impl<S> Send for ToolRoute<S>
impl<S> Sync for ToolRoute<S>
impl<S> Unpin for ToolRoute<S>
impl<S> UnsafeUnpin for ToolRoute<S>
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