#[non_exhaustive]pub struct ImdsResponseRetryClassifier { /* private fields */ }Expand description
IMDS Response Retry Classifier
Possible status codes:
- 200 (OK)
- 400 (Missing or invalid parameters) Not Retryable
- 401 (Unauthorized, expired token) Retryable
- 403 (IMDS disabled): Not Retryable
- 404 (Not found): Not Retryable
-
=500 (server error): Retryable
- Timeouts: Not retried by default, but this is configurable via Self::with_retry_connect_timeouts()
Implementations§
Source§impl ImdsResponseRetryClassifier
impl ImdsResponseRetryClassifier
Sourcepub fn with_retry_connect_timeouts(self, retry_connect_timeouts: bool) -> Self
pub fn with_retry_connect_timeouts(self, retry_connect_timeouts: bool) -> Self
Indicate whether the IMDS client should retry on connection timeouts
Trait Implementations§
Source§impl ClassifyRetry for ImdsResponseRetryClassifier
impl ClassifyRetry for ImdsResponseRetryClassifier
Source§fn classify_retry(&self, ctx: &InterceptorContext) -> RetryAction
fn classify_retry(&self, ctx: &InterceptorContext) -> RetryAction
Run this classifier on the
InterceptorContext to determine if the previous request
should be retried. Returns a RetryAction.Source§fn priority(&self) -> RetryClassifierPriority
fn priority(&self) -> RetryClassifierPriority
The priority of this retry classifier. Read more
Source§impl Clone for ImdsResponseRetryClassifier
impl Clone for ImdsResponseRetryClassifier
Source§fn clone(&self) -> ImdsResponseRetryClassifier
fn clone(&self) -> ImdsResponseRetryClassifier
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 ImdsResponseRetryClassifier
impl Debug for ImdsResponseRetryClassifier
Source§impl Default for ImdsResponseRetryClassifier
impl Default for ImdsResponseRetryClassifier
Source§fn default() -> ImdsResponseRetryClassifier
fn default() -> ImdsResponseRetryClassifier
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImdsResponseRetryClassifier
impl RefUnwindSafe for ImdsResponseRetryClassifier
impl Send for ImdsResponseRetryClassifier
impl Sync for ImdsResponseRetryClassifier
impl Unpin for ImdsResponseRetryClassifier
impl UnwindSafe for ImdsResponseRetryClassifier
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.