pub enum ToolErrorKind {
NotFound,
InvalidArgs,
ExecutionFailed,
DeniedByUser,
BlockedByHook,
LoopDetected,
SkillNotFound,
SkillDisabled,
SkillEmptyTemplate,
Warning,
Other,
}Expand description
工具调用错误类型
Variants§
NotFound
InvalidArgs
ExecutionFailed
DeniedByUser
BlockedByHook
LoopDetected
SkillNotFound
SkillDisabled
SkillEmptyTemplate
Warning
Tool ran successfully (exit 0) but produced stderr output, suggesting a partial failure or misleading success.
Other
Trait Implementations§
Source§impl Clone for ToolErrorKind
impl Clone for ToolErrorKind
Source§fn clone(&self) -> ToolErrorKind
fn clone(&self) -> ToolErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolErrorKind
impl Debug for ToolErrorKind
Source§impl PartialEq for ToolErrorKind
impl PartialEq for ToolErrorKind
Source§fn eq(&self, other: &ToolErrorKind) -> bool
fn eq(&self, other: &ToolErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolErrorKind
impl Serialize for ToolErrorKind
impl Copy for ToolErrorKind
impl Eq for ToolErrorKind
impl StructuralPartialEq for ToolErrorKind
Auto Trait Implementations§
impl Freeze for ToolErrorKind
impl RefUnwindSafe for ToolErrorKind
impl Send for ToolErrorKind
impl Sync for ToolErrorKind
impl Unpin for ToolErrorKind
impl UnsafeUnpin for ToolErrorKind
impl UnwindSafe for ToolErrorKind
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