pub enum RecoveryDef {
FailFast,
Retry {
max_retries: u32,
base_delay_ms: u64,
max_delay_ms: u64,
jitter: f64,
},
ErrorEdge,
}Expand description
Serializable recovery policy: "fail_fast", "error_edge", or
{"retry": {...}} (backoff parameters only — classification never serializes).
Variants§
FailFast
First error aborts the run.
Retry
Re-run with backoff on failure.
Fields
ErrorEdge
Route failures to on_error edges instead of aborting.
Trait Implementations§
Source§impl Clone for RecoveryDef
impl Clone for RecoveryDef
impl Copy for RecoveryDef
Source§impl Debug for RecoveryDef
impl Debug for RecoveryDef
Source§impl<'de> Deserialize<'de> for RecoveryDef
impl<'de> Deserialize<'de> for RecoveryDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RecoveryDef
impl PartialEq for RecoveryDef
Source§impl Serialize for RecoveryDef
impl Serialize for RecoveryDef
impl StructuralPartialEq for RecoveryDef
Auto Trait Implementations§
impl Freeze for RecoveryDef
impl RefUnwindSafe for RecoveryDef
impl Send for RecoveryDef
impl Sync for RecoveryDef
impl Unpin for RecoveryDef
impl UnsafeUnpin for RecoveryDef
impl UnwindSafe for RecoveryDef
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