#[non_exhaustive]pub enum ToolRegistryError {
#[non_exhaustive] DuplicateTool {
name: String,
},
#[non_exhaustive] DuplicateSource {
source_id: String,
},
#[non_exhaustive] UnknownSource {
source_id: String,
},
}Expand description
Failure to construct or change a tool registry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]DuplicateTool
Static tool definitions must have distinct names.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]DuplicateSource
A source with this identity is already registered.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]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 Forget for ToolRegistryError
impl Freeze for ToolRegistryError
impl Move 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