pub enum FailoverAction {
Retry(Duration),
RetryWith {
delay: Duration,
request: Box<ModelRequest>,
},
Next,
Stop,
}Expand description
What a Failover does after a failed attempt.
Variants§
Retry(Duration)
Try the same step again after this delay.
RetryWith
Try the same step again after delay with request instead (fewer
output tokens, no images, default options). Later attempts on the
step keep it; the next step starts from the original request.
Next
Move to the next step.
Stop
Give up: no other step would do better.
Trait Implementations§
Source§impl Clone for FailoverAction
impl Clone for FailoverAction
Source§impl Debug for FailoverAction
impl Debug for FailoverAction
Source§impl PartialEq for FailoverAction
impl PartialEq for FailoverAction
impl StructuralPartialEq for FailoverAction
Auto Trait Implementations§
impl Forget for FailoverAction
impl Freeze for FailoverAction
impl Move for FailoverAction
impl RefUnwindSafe for FailoverAction
impl Send for FailoverAction
impl Sync for FailoverAction
impl Unpin for FailoverAction
impl UnsafeUnpin for FailoverAction
impl UnwindSafe for FailoverAction
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