pub enum SkillError {
Message(String),
NotFound {
name: String,
},
Timeout {
message: String,
},
}Expand description
Skill 错误
Variants§
Trait Implementations§
Source§impl Debug for SkillError
impl Debug for SkillError
Source§impl DiagnosticError for SkillError
impl DiagnosticError for SkillError
Source§fn diagnostic(&self) -> ErrorDiagnostic
fn diagnostic(&self) -> ErrorDiagnostic
获取错误的诊断信息
Source§fn is_retriable(&self) -> bool
fn is_retriable(&self) -> bool
判断是否可重试
Source§fn category(&self) -> ErrorCategory
fn category(&self) -> ErrorCategory
获取错误类别
Source§impl Display for SkillError
impl Display for SkillError
Source§impl Error for SkillError
impl Error for SkillError
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()
Auto Trait Implementations§
impl Freeze for SkillError
impl RefUnwindSafe for SkillError
impl Send for SkillError
impl Sync for SkillError
impl Unpin for SkillError
impl UnsafeUnpin for SkillError
impl UnwindSafe for SkillError
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