pub struct CompositeRegistry { /* private fields */ }Expand description
A “composite” view of the process-level and session-level registries.
Lookup semantics: session-level (per-session MCP) first, then process-level (built-in). This allows session-level MCP tools to “shadow” built-in tools with the same name — a common convention in the MCP model.
Implementations§
Source§impl CompositeRegistry
impl CompositeRegistry
pub fn new( session: Arc<dyn ToolRegistry>, process: Arc<dyn ToolRegistry>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CompositeRegistry
impl !UnwindSafe for CompositeRegistry
impl Freeze for CompositeRegistry
impl Send for CompositeRegistry
impl Sync for CompositeRegistry
impl Unpin for CompositeRegistry
impl UnsafeUnpin for CompositeRegistry
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