#[non_exhaustive]pub enum ActivityAttemptLimit {
Unknown,
Unlimited,
Bounded(u64),
}Expand description
The configured attempt budget in an activity’s retry snapshot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
The snapshot or a valid limit is unavailable. This does not mean unlimited.
Unlimited
The snapshot explicitly contains "max_attempts": null.
Bounded(u64)
The snapshot contains a positive maximum count, including the first attempt.
Trait Implementations§
Source§impl Clone for ActivityAttemptLimit
impl Clone for ActivityAttemptLimit
Source§fn clone(&self) -> ActivityAttemptLimit
fn clone(&self) -> ActivityAttemptLimit
Returns a copy 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 ActivityAttemptLimit
impl Debug for ActivityAttemptLimit
Source§impl PartialEq for ActivityAttemptLimit
impl PartialEq for ActivityAttemptLimit
impl Copy for ActivityAttemptLimit
impl Eq for ActivityAttemptLimit
impl StructuralPartialEq for ActivityAttemptLimit
Auto Trait Implementations§
impl Freeze for ActivityAttemptLimit
impl RefUnwindSafe for ActivityAttemptLimit
impl Send for ActivityAttemptLimit
impl Sync for ActivityAttemptLimit
impl Unpin for ActivityAttemptLimit
impl UnwindSafe for ActivityAttemptLimit
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