pub struct CustomToolRegistry { /* private fields */ }Expand description
Registry for custom tools.
Implementations§
Source§impl CustomToolRegistry
impl CustomToolRegistry
Sourcepub fn register(&self, tool: CustomTool)
pub fn register(&self, tool: CustomTool)
Register a custom tool.
Sourcepub fn register_spider_cloud(&self, config: &SpiderCloudToolConfig) -> usize
pub fn register_spider_cloud(&self, config: &SpiderCloudToolConfig) -> usize
Register Spider Cloud tools from a shared config.
Returns the number of tools registered.
Sourcepub fn register_spider_browser(&self, config: &SpiderBrowserToolConfig) -> usize
pub fn register_spider_browser(&self, config: &SpiderBrowserToolConfig) -> usize
Register Spider Browser Cloud tools from a shared config.
Returns the number of tools registered.
Trait Implementations§
Source§impl Debug for CustomToolRegistry
impl Debug for CustomToolRegistry
Source§impl Default for CustomToolRegistry
impl Default for CustomToolRegistry
Source§fn default() -> CustomToolRegistry
fn default() -> CustomToolRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CustomToolRegistry
impl !RefUnwindSafe for CustomToolRegistry
impl Send for CustomToolRegistry
impl Sync for CustomToolRegistry
impl Unpin for CustomToolRegistry
impl UnsafeUnpin for CustomToolRegistry
impl UnwindSafe for CustomToolRegistry
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