pub enum ToolRuntimeError {
Panicked,
CompletionLost,
OutputContractViolated,
TerminationFailed,
DeadlineExceeded,
}Expand description
Runtime failure from a tool implementation.
Variants§
Panicked
Panic caught.
CompletionLost
Lost completion.
OutputContractViolated
Output contract violation.
TerminationFailed
Termination mechanism failed.
DeadlineExceeded
Deadline exceeded.
Trait Implementations§
Source§impl Clone for ToolRuntimeError
impl Clone for ToolRuntimeError
Source§fn clone(&self) -> ToolRuntimeError
fn clone(&self) -> ToolRuntimeError
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 ToolRuntimeError
impl Debug for ToolRuntimeError
Source§impl Display for ToolRuntimeError
impl Display for ToolRuntimeError
impl Eq for ToolRuntimeError
Source§impl Error for ToolRuntimeError
impl Error for ToolRuntimeError
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 ToolRuntimeError
impl PartialEq for ToolRuntimeError
impl StructuralPartialEq for ToolRuntimeError
Auto Trait Implementations§
impl Freeze for ToolRuntimeError
impl RefUnwindSafe for ToolRuntimeError
impl Send for ToolRuntimeError
impl Sync for ToolRuntimeError
impl Unpin for ToolRuntimeError
impl UnsafeUnpin for ToolRuntimeError
impl UnwindSafe for ToolRuntimeError
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