pub struct RetryContext {
pub attempt: u32,
pub elapsed: Duration,
pub remaining: Option<Duration>,
}Expand description
Protocol-independent timing and attempt information for a classifier.
Fields§
§attempt: u32One-based attempt number; zero means transport work has not begun.
elapsed: DurationTime since SDK submission started.
remaining: Option<Duration>Remaining total budget, if a total deadline exists.
Trait Implementations§
Source§impl Clone for RetryContext
impl Clone for RetryContext
Source§impl Debug for RetryContext
impl Debug for RetryContext
impl Eq for RetryContext
Source§impl PartialEq for RetryContext
impl PartialEq for RetryContext
impl StructuralPartialEq for RetryContext
Auto Trait Implementations§
impl Forget for RetryContext
impl Freeze for RetryContext
impl Move for RetryContext
impl RefUnwindSafe for RetryContext
impl Send for RetryContext
impl Sync for RetryContext
impl Unpin for RetryContext
impl UnsafeUnpin for RetryContext
impl UnwindSafe for RetryContext
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