pub enum ToolTimeoutError {
Timeout {
tool_name: String,
timeout_duration: Duration,
elapsed: Duration,
},
Cancelled {
tool_name: String,
elapsed: Duration,
},
ServerError(ServerError),
}Expand description
Tool timeout error types
Variants§
Timeout
Tool execution exceeded configured timeout
Fields
Cancelled
Tool execution was cancelled cooperatively
Fields
ServerError(ServerError)
Tool execution failed with server error
Trait Implementations§
Source§impl Debug for ToolTimeoutError
impl Debug for ToolTimeoutError
Source§impl Display for ToolTimeoutError
impl Display for ToolTimeoutError
Source§impl Error for ToolTimeoutError
impl Error for ToolTimeoutError
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 From<ToolTimeoutError> for ServerError
impl From<ToolTimeoutError> for ServerError
Source§fn from(timeout_error: ToolTimeoutError) -> Self
fn from(timeout_error: ToolTimeoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolTimeoutError
impl !RefUnwindSafe for ToolTimeoutError
impl Send for ToolTimeoutError
impl Sync for ToolTimeoutError
impl Unpin for ToolTimeoutError
impl !UnwindSafe for ToolTimeoutError
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