pub struct RetryEngine { /* private fields */ }Implementations§
Source§impl RetryEngine
impl RetryEngine
pub fn new(policy: RetryPolicy, idempotent: bool) -> Self
Sourcepub fn decide(&self, attempt: Attempt, err: &InferenceError) -> RetryDecision
pub fn decide(&self, attempt: Attempt, err: &InferenceError) -> RetryDecision
Decide whether to retry after a failed attempt. attempt is the
0-indexed attempt that just failed (so 0 means we’ve made one
attempt and are deciding whether to make a second).
Auto Trait Implementations§
impl Freeze for RetryEngine
impl RefUnwindSafe for RetryEngine
impl Send for RetryEngine
impl Sync for RetryEngine
impl Unpin for RetryEngine
impl UnsafeUnpin for RetryEngine
impl UnwindSafe for RetryEngine
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