pub struct ActivityRetryInfo { /* private fields */ }Expand description
Original attempt identity and retry policy, captured before invoking a handler.
Service workers retain the Server claim’s JSON without filling defaults or discarding unknown fields. Direct activity tests and local activities have no received Server snapshot and report an unknown policy. Fresh workflow tests expose the same modeled snapshot they record in their generated history.
Implementations§
Source§impl ActivityRetryInfo
impl ActivityRetryInfo
Sourcepub fn attempt_number(&self) -> u64
pub fn attempt_number(&self) -> u64
The original attempt number. Mutating the context’s public compatibility field does not change this captured identity or its budget checks.
Sourcepub fn policy(&self) -> Option<&Value>
pub fn policy(&self) -> Option<&Value>
The original policy JSON. None means omitted, while Some(Value::Null)
preserves an explicitly null legacy policy. Neither implies unlimited.
Sourcepub fn attempt_limit(&self) -> ActivityAttemptLimit
pub fn attempt_limit(&self) -> ActivityAttemptLimit
Interpret only a positive integer or explicit null max_attempts field.
Missing, malformed and legacy values remain unknown and are preserved.
Sourcepub fn is_last_configured_attempt(&self) -> Option<bool>
pub fn is_last_configured_attempt(&self) -> Option<bool>
Whether this is the final configured attempt (or already exceeds its budget).
Returns None for an unknown policy or invalid zero attempt number, and
Some(false) for explicit unlimited retries. A remaining budget does not
promise another execution: non-retryable failures, cancellation, workflow
closure and elapsed deadlines may end execution earlier.
Trait Implementations§
Source§impl Clone for ActivityRetryInfo
impl Clone for ActivityRetryInfo
Source§fn clone(&self) -> ActivityRetryInfo
fn clone(&self) -> ActivityRetryInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more