pub enum ToolError {
Show 15 variants
InvalidConfiguration {
message: String,
},
UnknownTool {
name: ToolName,
},
DuplicateName {
name: ToolName,
},
InvalidArguments {
tool: ToolName,
message: String,
issues: Vec<ValidationIssue>,
},
InvalidOutput {
message: String,
issues: Vec<ValidationIssue>,
},
InvalidInteraction {
id: String,
message: String,
},
UndeclaredInteraction {
tool: ToolName,
kind: String,
},
InteractionDeclined {
tool: ToolName,
reason: Option<String>,
},
Cancelled {
tool: ToolName,
reason: Option<String>,
},
Transport {
tool: Option<ToolName>,
message: String,
},
Protocol {
message: String,
},
Timeout {
tool: ToolName,
timeout_secs: u64,
},
Unsupported {
operation: String,
},
Closed {
operation: String,
},
BuildCleanup {
primary: Box<ToolError>,
cleanup: Box<ToolError>,
},
}Expand description
Portable executable-tool errors.
Variants§
InvalidConfiguration
Toolset, registration, client, or server configuration is invalid.
UnknownTool
The requested tool name is not present in the inventory.
DuplicateName
More than one registration resolves to the same caller-facing name.
InvalidArguments
Invocation arguments failed source-neutral validation.
Fields
issues: Vec<ValidationIssue>Structured schema diagnostics, when available.
InvalidOutput
A completed result failed source-neutral output validation.
Fields
issues: Vec<ValidationIssue>Structured schema diagnostics, when available.
InvalidInteraction
A caller response does not match the pending interaction.
Fields
UndeclaredInteraction
A local tool requested an interaction capability it did not declare.
Fields
InteractionDeclined
The caller declined a pending interaction.
Fields
Cancelled
Tool execution or interaction resolution was cancelled.
Fields
Transport
The executable source or interaction transport is unavailable.
Fields
Protocol
The source returned or received invalid protocol data.
Timeout
A bounded tool operation exceeded its deadline.
Fields
Unsupported
The selected source does not support an operation.
Closed
Admission was rejected because Toolset shutdown has begun.
BuildCleanup
Toolset construction failed and its compensating cleanup also failed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolError
impl<'de> Deserialize<'de> for ToolError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Error for ToolError
impl Error for ToolError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for ToolError
Auto Trait Implementations§
impl Freeze for ToolError
impl RefUnwindSafe for ToolError
impl Send for ToolError
impl Sync for ToolError
impl Unpin for ToolError
impl UnsafeUnpin for ToolError
impl UnwindSafe for ToolError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.