Struct ore::retry::RetryState [−][src]
This is supported on crate feature
network
only.Expand description
The state of a retry operation constructed with Retry
.
Fields
i: usize
The retry counter, starting from zero on the first try.
next_backoff: Option<Duration>
The duration that the retry operation will sleep for before the next retry if this try fails.
If this is the last attempt, then this field will be None
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RetryState
impl Send for RetryState
impl Sync for RetryState
impl Unpin for RetryState
impl UnwindSafe for RetryState
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more