pub enum RetryClass {
Transient,
Permanent,
}Expand description
Deterministic verdict on whether an errored tool invocation may be retried.
Transient means the failure was likely environmental (network blip, flaky
dependency) and a retry has a real chance of succeeding. Permanent means
the inputs or policy are wrong and retrying would just waste the budget.
Variants§
Transient
Retry is allowed; the failure is likely environmental.
Permanent
Retry is forbidden; the failure is intrinsic to the inputs or policy.
Trait Implementations§
Source§impl Clone for RetryClass
impl Clone for RetryClass
Source§fn clone(&self) -> RetryClass
fn clone(&self) -> RetryClass
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 RetryClass
impl Debug for RetryClass
Source§impl Hash for RetryClass
impl Hash for RetryClass
Source§impl PartialEq for RetryClass
impl PartialEq for RetryClass
Source§fn eq(&self, other: &RetryClass) -> bool
fn eq(&self, other: &RetryClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RetryClass
impl Eq for RetryClass
impl StructuralPartialEq for RetryClass
Auto Trait Implementations§
impl Freeze for RetryClass
impl RefUnwindSafe for RetryClass
impl Send for RetryClass
impl Sync for RetryClass
impl Unpin for RetryClass
impl UnsafeUnpin for RetryClass
impl UnwindSafe for RetryClass
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