Struct aws_sdk_appmesh::model::HttpRetryPolicy
source · [−]#[non_exhaustive]pub struct HttpRetryPolicy {
pub per_retry_timeout: Option<Duration>,
pub max_retries: Option<i64>,
pub http_retry_events: Option<Vec<String>>,
pub tcp_retry_events: Option<Vec<TcpRetryPolicyEvent>>,
}
Expand description
An object that represents a retry policy. Specify at least one value for at least one of the types of RetryEvents
, a value for maxRetries
, and a value for perRetryTimeout
. Both server-error
and gateway-error
under httpRetryEvents
include the Envoy reset
policy. For more information on the reset
policy, see the Envoy documentation.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.per_retry_timeout: Option<Duration>
The timeout for each retry attempt.
max_retries: Option<i64>
The maximum number of retry attempts.
http_retry_events: Option<Vec<String>>
Specify at least one of the following values.
-
server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511
-
gateway-error – HTTP status codes 502, 503, and 504
-
client-error – HTTP status code 409
-
stream-error – Retry on refused stream
tcp_retry_events: Option<Vec<TcpRetryPolicyEvent>>
Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
Implementations
sourceimpl HttpRetryPolicy
impl HttpRetryPolicy
sourcepub fn per_retry_timeout(&self) -> Option<&Duration>
pub fn per_retry_timeout(&self) -> Option<&Duration>
The timeout for each retry attempt.
sourcepub fn max_retries(&self) -> Option<i64>
pub fn max_retries(&self) -> Option<i64>
The maximum number of retry attempts.
sourcepub fn http_retry_events(&self) -> Option<&[String]>
pub fn http_retry_events(&self) -> Option<&[String]>
Specify at least one of the following values.
-
server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511
-
gateway-error – HTTP status codes 502, 503, and 504
-
client-error – HTTP status code 409
-
stream-error – Retry on refused stream
sourcepub fn tcp_retry_events(&self) -> Option<&[TcpRetryPolicyEvent]>
pub fn tcp_retry_events(&self) -> Option<&[TcpRetryPolicyEvent]>
Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
sourceimpl HttpRetryPolicy
impl HttpRetryPolicy
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture HttpRetryPolicy
Trait Implementations
sourceimpl Clone for HttpRetryPolicy
impl Clone for HttpRetryPolicy
sourcefn clone(&self) -> HttpRetryPolicy
fn clone(&self) -> HttpRetryPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HttpRetryPolicy
impl Debug for HttpRetryPolicy
sourceimpl PartialEq<HttpRetryPolicy> for HttpRetryPolicy
impl PartialEq<HttpRetryPolicy> for HttpRetryPolicy
sourcefn eq(&self, other: &HttpRetryPolicy) -> bool
fn eq(&self, other: &HttpRetryPolicy) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HttpRetryPolicy) -> bool
fn ne(&self, other: &HttpRetryPolicy) -> bool
This method tests for !=
.
impl StructuralPartialEq for HttpRetryPolicy
Auto Trait Implementations
impl RefUnwindSafe for HttpRetryPolicy
impl Send for HttpRetryPolicy
impl Sync for HttpRetryPolicy
impl Unpin for HttpRetryPolicy
impl UnwindSafe for HttpRetryPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more