#[non_exhaustive]pub enum ToolDescriptorError {
WrongCapabilityKind {
actual: CapabilityKind,
},
ReadOnlyResourceWrite {
network: ToolResourceAccess,
filesystem: ToolResourceAccess,
},
}Expand description
Invalid cross-component tool descriptor.
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.
WrongCapabilityKind
Common metadata classified the capability as something other than a tool.
Fields
§
actual: CapabilityKindConflicting capability kind.
ReadOnlyResourceWrite
A read-only tool requested write access to a broad resource category.
Fields
§
network: ToolResourceAccessConflicting network access.
§
filesystem: ToolResourceAccessConflicting filesystem access.
Trait Implementations§
Source§impl Clone for ToolDescriptorError
impl Clone for ToolDescriptorError
Source§impl Debug for ToolDescriptorError
impl Debug for ToolDescriptorError
Source§impl Display for ToolDescriptorError
impl Display for ToolDescriptorError
impl Eq for ToolDescriptorError
Source§impl Error for ToolDescriptorError
impl Error for ToolDescriptorError
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 ToolDescriptorError
impl PartialEq for ToolDescriptorError
impl StructuralPartialEq for ToolDescriptorError
Auto Trait Implementations§
impl Forget for ToolDescriptorError
impl Freeze for ToolDescriptorError
impl Move for ToolDescriptorError
impl RefUnwindSafe for ToolDescriptorError
impl Send for ToolDescriptorError
impl Sync for ToolDescriptorError
impl Unpin for ToolDescriptorError
impl UnsafeUnpin for ToolDescriptorError
impl UnwindSafe for ToolDescriptorError
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