pub struct NodeRetryPolicy {
pub max_attempts: u32,
pub initial_delay_ms: u64,
pub backoff_multiplier: f64,
pub max_delay_ms: u64,
}Expand description
Per-task retry policy. The engine wraps Node::execute calls in a
retry loop when the node returns a Some policy and the call fails
with a cognis_core::CognisError whose is_retryable() is true.
Fields§
§max_attempts: u32Maximum total attempts (including the first).
initial_delay_ms: u64Initial backoff before the first retry (milliseconds).
backoff_multiplier: f64Multiplier applied to the delay after each failed attempt.
max_delay_ms: u64Cap on per-attempt delay (milliseconds).
Trait Implementations§
Source§impl Clone for NodeRetryPolicy
impl Clone for NodeRetryPolicy
Source§fn clone(&self) -> NodeRetryPolicy
fn clone(&self) -> NodeRetryPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeRetryPolicy
impl Debug for NodeRetryPolicy
Source§impl Default for NodeRetryPolicy
impl Default for NodeRetryPolicy
impl Copy for NodeRetryPolicy
Auto Trait Implementations§
impl Freeze for NodeRetryPolicy
impl RefUnwindSafe for NodeRetryPolicy
impl Send for NodeRetryPolicy
impl Sync for NodeRetryPolicy
impl Unpin for NodeRetryPolicy
impl UnsafeUnpin for NodeRetryPolicy
impl UnwindSafe for NodeRetryPolicy
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