pub struct CompositeToolPort { /* private fields */ }Expand description
A ToolPort that delegates to multiple inner ports.
Each inner port is identified by a server_id (e.g. "filesystem").
Tool IDs are expected to be already namespaced (e.g. "mcp/filesystem/read_file").
Routing uses the first inner port whose tool list contains the requested name.
Implementations§
Trait Implementations§
Source§impl Debug for CompositeToolPort
impl Debug for CompositeToolPort
Source§impl ToolPort for CompositeToolPort
impl ToolPort for CompositeToolPort
Auto Trait Implementations§
impl Freeze for CompositeToolPort
impl !RefUnwindSafe for CompositeToolPort
impl Send for CompositeToolPort
impl Sync for CompositeToolPort
impl Unpin for CompositeToolPort
impl UnsafeUnpin for CompositeToolPort
impl !UnwindSafe for CompositeToolPort
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