pub struct RetryCount(/* private fields */);Expand description
Count of retry attempts that have been made (0-based).
RetryCount represents how many retry attempts have been made so far. Starts at 0 on the initial failure (before any retries).
§Examples
ⓘ
use eventcore_types::projection::RetryCount;
let initial_failure = RetryCount::new(0);
let after_first_retry = RetryCount::new(1);
let after_three_retries = RetryCount::new(3);Implementations§
Source§impl RetryCount
impl RetryCount
pub fn new(raw_value: u32) -> RetryCount
Source§impl RetryCount
impl RetryCount
pub fn into_inner(self) -> u32
Trait Implementations§
Source§impl Clone for RetryCount
impl Clone for RetryCount
Source§fn clone(&self) -> RetryCount
fn clone(&self) -> RetryCount
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 RetryCount
impl Debug for RetryCount
Source§impl Display for RetryCount
impl Display for RetryCount
Source§impl Ord for RetryCount
impl Ord for RetryCount
Source§fn cmp(&self, other: &RetryCount) -> Ordering
fn cmp(&self, other: &RetryCount) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RetryCount
impl PartialEq for RetryCount
Source§impl PartialOrd for RetryCount
impl PartialOrd for RetryCount
impl Copy for RetryCount
impl Eq for RetryCount
impl StructuralPartialEq for RetryCount
Auto Trait Implementations§
impl Freeze for RetryCount
impl RefUnwindSafe for RetryCount
impl Send for RetryCount
impl Sync for RetryCount
impl Unpin for RetryCount
impl UnsafeUnpin for RetryCount
impl UnwindSafe for RetryCount
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