pub struct DefaultRetryClassifier;Expand description
Default classifier covering every KernelError variant.
The mapping is conservative: anything that could be a flake (the tool
body errored, a skill body errored) is Transient. Everything that
signals a permanent disagreement (auth, missing names, invalid args,
budget exhaustion, dispatch termination, JSON parse errors) is
Permanent.
Trait Implementations§
Source§impl Clone for DefaultRetryClassifier
impl Clone for DefaultRetryClassifier
Source§fn clone(&self) -> DefaultRetryClassifier
fn clone(&self) -> DefaultRetryClassifier
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 DefaultRetryClassifier
impl Debug for DefaultRetryClassifier
Source§impl Default for DefaultRetryClassifier
impl Default for DefaultRetryClassifier
Source§fn default() -> DefaultRetryClassifier
fn default() -> DefaultRetryClassifier
Returns the “default value” for a type. Read more
Source§impl RetryClassifier for DefaultRetryClassifier
impl RetryClassifier for DefaultRetryClassifier
Source§fn classify(&self, error: &KernelError) -> RetryClass
fn classify(&self, error: &KernelError) -> RetryClass
Return the retry verdict for
error.impl Copy for DefaultRetryClassifier
Auto Trait Implementations§
impl Freeze for DefaultRetryClassifier
impl RefUnwindSafe for DefaultRetryClassifier
impl Send for DefaultRetryClassifier
impl Sync for DefaultRetryClassifier
impl Unpin for DefaultRetryClassifier
impl UnsafeUnpin for DefaultRetryClassifier
impl UnwindSafe for DefaultRetryClassifier
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