#[non_exhaustive]pub enum RetryState {
Unspecified,
InProgress,
NonRetryableFailure,
Timeout,
MaximumAttemptsReached,
RetryPolicyNotSet,
InternalServerError,
CancelRequested,
Unknown,
}Expand description
Describes why a retry did or did not occur.
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.
Unspecified
No retry state was specified.
InProgress
Another retry is in progress.
NonRetryableFailure
The failure is not retryable.
Timeout
The retry timed out.
MaximumAttemptsReached
The retry policy’s maximum attempts were reached.
RetryPolicyNotSet
No retry policy was configured.
InternalServerError
An internal server error prevented retrying.
CancelRequested
Cancellation was requested.
Unknown
A state introduced by a newer server or API version.
Trait Implementations§
Source§impl Clone for RetryState
impl Clone for RetryState
Source§fn clone(&self) -> RetryState
fn clone(&self) -> RetryState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RetryState
Source§impl Debug for RetryState
impl Debug for RetryState
impl Eq for RetryState
Source§impl From<RetryState> for RetryState
impl From<RetryState> for RetryState
Source§fn from(value: RetryState) -> RetryState
fn from(value: RetryState) -> RetryState
Converts to this type from the input type.
Source§impl Hash for RetryState
impl Hash for RetryState
Source§impl PartialEq for RetryState
impl PartialEq for RetryState
impl StructuralPartialEq for RetryState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request