pub struct ResolvedTool {
pub spec: ToolSpec,
pub handler: Arc<dyn ToolHandler>,
}Expand description
One tool admitted into a transaction.
Fields§
§spec: ToolSpecSpec (encoder/MCP projection).
handler: Arc<dyn ToolHandler>Handler (same Arc as host registry).
Trait Implementations§
Source§impl Clone for ResolvedTool
impl Clone for ResolvedTool
Source§fn clone(&self) -> ResolvedTool
fn clone(&self) -> ResolvedTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ResolvedTool
impl !UnwindSafe for ResolvedTool
impl Freeze for ResolvedTool
impl Send for ResolvedTool
impl Sync for ResolvedTool
impl Unpin for ResolvedTool
impl UnsafeUnpin for ResolvedTool
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