pub struct RetryState {
pub attempt: u32,
pub error: SynwireError,
pub elapsed: Duration,
}Expand description
State tracked during retry attempts.
Fields§
§attempt: u32Current attempt number.
error: SynwireErrorThe error that triggered the retry.
elapsed: DurationTotal elapsed time since first attempt.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RetryState
impl !RefUnwindSafe for RetryState
impl Send for RetryState
impl Sync for RetryState
impl Unpin for RetryState
impl UnsafeUnpin for RetryState
impl !UnwindSafe for RetryState
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