pub enum ToolRegistryError {
DuplicateTool {
name: String,
},
DuplicateSource {
source_id: String,
},
UnknownSource {
source_id: String,
},
}Expand description
Failure to construct or change a tool registry.
Variants§
DuplicateTool
Static tool definitions must have distinct names.
DuplicateSource
A source with this identity is already registered.
UnknownSource
A requested source is not registered.
Trait Implementations§
Source§impl Clone for ToolRegistryError
impl Clone for ToolRegistryError
Source§impl Debug for ToolRegistryError
impl Debug for ToolRegistryError
Source§impl Display for ToolRegistryError
impl Display for ToolRegistryError
impl Eq for ToolRegistryError
Source§impl Error for ToolRegistryError
impl Error for ToolRegistryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ToolRegistryError
impl PartialEq for ToolRegistryError
impl StructuralPartialEq for ToolRegistryError
Auto Trait Implementations§
impl Freeze for ToolRegistryError
impl RefUnwindSafe for ToolRegistryError
impl Send for ToolRegistryError
impl Sync for ToolRegistryError
impl Unpin for ToolRegistryError
impl UnsafeUnpin for ToolRegistryError
impl UnwindSafe for ToolRegistryError
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