pub struct CombinedToolRegistry<'a> { /* private fields */ }Expand description
A registry that combines two tool registries.
The primary registry takes precedence over the secondary registry when tools have the same name.
Implementations§
Source§impl<'a> CombinedToolRegistry<'a>
impl<'a> CombinedToolRegistry<'a>
Sourcepub fn new(
primary: &'a dyn ToolRegistryTrait,
secondary: &'a dyn ToolRegistryTrait,
) -> Self
pub fn new( primary: &'a dyn ToolRegistryTrait, secondary: &'a dyn ToolRegistryTrait, ) -> Self
Create a new combined registry.
§Arguments
primary- The primary registry (higher priority)secondary- The secondary registry (lower priority)
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CombinedToolRegistry<'a>
impl<'a> !UnwindSafe for CombinedToolRegistry<'a>
impl<'a> Freeze for CombinedToolRegistry<'a>
impl<'a> Send for CombinedToolRegistry<'a>
impl<'a> Sync for CombinedToolRegistry<'a>
impl<'a> Unpin for CombinedToolRegistry<'a>
impl<'a> UnsafeUnpin for CombinedToolRegistry<'a>
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