pub struct ExecutionConfig {
pub timeout: Option<Duration>,
pub retry_config: RetryConfig,
}Expand description
Tool execution configuration.
Fields§
§timeout: Option<Duration>Per-call execution timeout (None = no timeout).
When the deadline elapses the tool’s execution future is dropped
(cancelled) and the call resolves to a ToolError::TimeoutError. The
timeout cancels only the local future — for a tool backed by a remote
service the request may already be on the wire (see
ToolError::TimeoutError for the full caveat).
retry_config: RetryConfigRetry/backoff configuration.
Trait Implementations§
Source§impl Clone for ExecutionConfig
impl Clone for ExecutionConfig
Source§fn clone(&self) -> ExecutionConfig
fn clone(&self) -> ExecutionConfig
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 ExecutionConfig
impl Debug for ExecutionConfig
Auto Trait Implementations§
impl Freeze for ExecutionConfig
impl RefUnwindSafe for ExecutionConfig
impl Send for ExecutionConfig
impl Sync for ExecutionConfig
impl Unpin for ExecutionConfig
impl UnsafeUnpin for ExecutionConfig
impl UnwindSafe for ExecutionConfig
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