pub struct ToolEntry { /* private fields */ }Expand description
One registered tool: its MCP descriptor, effect class, and handler.
Fields are pub(crate) so external callers cannot bypass
ToolRegistry::call’s class gate by invoking the handler
directly. Read-only accessors expose the bits external callers
(integration tests, listing) actually need.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolEntry
impl !RefUnwindSafe for ToolEntry
impl Send for ToolEntry
impl Sync for ToolEntry
impl Unpin for ToolEntry
impl UnsafeUnpin for ToolEntry
impl !UnwindSafe for ToolEntry
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