Skip to main content

HasInnerTool

Trait HasInnerTool 

Source
pub trait HasInnerTool: Send + Sync {
    // Required method
    fn inner_tool(&self) -> &dyn Tool;
}
Expand description

Trait for contexts that can borrow an inner Tool for passthrough.

Keep shared ownership inside the bridge context; callers only need a borrowed dyn Tool to delegate metadata, validation, and execution.

Required Methods§

Source

fn inner_tool(&self) -> &dyn Tool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<Runtime: Send + Sync> HasInnerTool for ToolBridgeCtx<Runtime>