pub struct RetryPolicy {
pub max_retries: u32,
pub initial_backoff_secs: u64,
pub max_backoff_secs: u64,
}Expand description
Retry policy for job chunk execution.
By default, Disconnected and LeaseExpired are retried with capped
exponential backoff. All other errors (Fenced, CapacityExceeded,
IoError, Unsupported) are treated as permanent failures — fail closed.
Fields§
§max_retries: u32Maximum number of retry attempts per chunk (default 3).
initial_backoff_secs: u64Initial backoff delay in seconds (default 1).
max_backoff_secs: u64Maximum backoff delay in seconds (default 16).
Implementations§
Source§impl RetryPolicy
impl RetryPolicy
Sourcepub fn classify(&self, err: &FabricError) -> RetryableError
pub fn classify(&self, err: &FabricError) -> RetryableError
Classify an error as transient (retryable) or permanent.
Only Disconnected and LeaseExpired are transient. Everything
else is permanent — fail closed on decode/corruption/fencing.
Trait Implementations§
Source§impl Clone for RetryPolicy
impl Clone for RetryPolicy
Source§fn clone(&self) -> RetryPolicy
fn clone(&self) -> RetryPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 RetryPolicy
impl Debug for RetryPolicy
Auto Trait Implementations§
impl Freeze for RetryPolicy
impl RefUnwindSafe for RetryPolicy
impl Send for RetryPolicy
impl Sync for RetryPolicy
impl Unpin for RetryPolicy
impl UnwindSafe for RetryPolicy
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