pub enum RetryAction {
Retry {
after: Duration,
},
FallbackModel,
Abort(String),
}Expand description
Action the caller should take after a failure.
Variants§
Retry
Wait and retry with the same model.
FallbackModel
Switch to the fallback model and retry.
Abort(String)
Give up — unrecoverable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RetryAction
impl RefUnwindSafe for RetryAction
impl Send for RetryAction
impl Sync for RetryAction
impl Unpin for RetryAction
impl UnsafeUnpin for RetryAction
impl UnwindSafe for RetryAction
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