pub struct ToolPanic {
pub name: String,
pub message: String,
}Expand description
A tool’s future panicked while handling a call.
The loop reports it as the call’s failed result, so the call still gets a
result and the run continues; a hook reads it by downcasting the
ToolOutcome error.
Fields§
§name: StringName of the tool that panicked.
message: StringThe panic message, or a note that the payload was not a string.
Trait Implementations§
impl Eq for ToolPanic
Source§impl Error for ToolPanic
impl Error for ToolPanic
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()
impl StructuralPartialEq for ToolPanic
Auto Trait Implementations§
impl Forget for ToolPanic
impl Freeze for ToolPanic
impl Move for ToolPanic
impl RefUnwindSafe for ToolPanic
impl Send for ToolPanic
impl Sync for ToolPanic
impl Unpin for ToolPanic
impl UnsafeUnpin for ToolPanic
impl UnwindSafe for ToolPanic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.