Skip to main content

IntoToolRoute

Trait IntoToolRoute 

Source
pub trait IntoToolRoute<S, A> {
    // Required method
    fn into_tool_route(self) -> ToolRoute<S>;
}
Available on crate feature server only.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<S, C, A, T> IntoToolRoute<S, A> for (T, C)
where S: MaybeSend + 'static, C: CallToolHandler<S, A> + MaybeSend + Clone + 'static, T: Into<Tool>,

Implementors§

Source§

impl<C, S, A> IntoToolRoute<S, A> for WithToolAttr<C, S, A>
where C: CallToolHandler<S, A> + MaybeSend + Clone + 'static, S: MaybeSend + 'static,

Source§

impl<S, F> IntoToolRoute<S, ToolAttrGenerateFunctionAdapter> for F
where S: MaybeSend + 'static, F: Fn() -> ToolRoute<S>,

Source§

impl<S> IntoToolRoute<S, ()> for ToolRoute<S>
where S: MaybeSend + 'static,