#[non_exhaustive]pub enum ToolCatalogError {
Control(ControlError),
#[non_exhaustive] Source {
source_id: String,
error: SourceError,
},
#[non_exhaustive] DuplicateTool {
name: String,
},
#[non_exhaustive] StaticNameChanged {
registered: String,
actual: String,
},
}Expand description
Failure to bind a complete, unambiguous invocation catalog.
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.
Control(ControlError)
The parent invocation control stopped catalog acquisition.
#[non_exhaustive]Source
A catalog could not be listed; its original error is retained.
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.
§
error: SourceErrorOriginal listing failure.
#[non_exhaustive]DuplicateTool
A name occurred more than once in the assembled catalog.
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]StaticNameChanged
A static tool changed the name registered at construction.
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.
Trait Implementations§
Source§impl Debug for ToolCatalogError
impl Debug for ToolCatalogError
Source§impl Display for ToolCatalogError
impl Display for ToolCatalogError
Source§impl Error for ToolCatalogError
impl Error for ToolCatalogError
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()
Auto Trait Implementations§
impl Forget for ToolCatalogError
impl Freeze for ToolCatalogError
impl Move for ToolCatalogError
impl RefUnwindSafe for ToolCatalogError
impl Send for ToolCatalogError
impl Sync for ToolCatalogError
impl Unpin for ToolCatalogError
impl UnsafeUnpin for ToolCatalogError
impl UnwindSafe for ToolCatalogError
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