pub struct ToolSpec<H: Send + Sync + 'static> { /* private fields */ }Expand description
Declarative registration entry for one MCP tool.
Pairs the tool’s router-registration function with its mode gates.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<H> Freeze for ToolSpec<H>
impl<H> RefUnwindSafe for ToolSpec<H>
impl<H> Send for ToolSpec<H>
impl<H> Sync for ToolSpec<H>
impl<H> Unpin for ToolSpec<H>
impl<H> UnsafeUnpin for ToolSpec<H>
impl<H> UnwindSafe for ToolSpec<H>
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