Struct aws_smithy_runtime::client::retries::strategy::StandardRetryStrategy
source · pub struct StandardRetryStrategy { /* private fields */ }
Available on crate feature
client
only.Expand description
Retry strategy with exponential backoff, max attempts, and a token bucket.
Implementations§
Trait Implementations§
source§impl Debug for StandardRetryStrategy
impl Debug for StandardRetryStrategy
source§impl Default for StandardRetryStrategy
impl Default for StandardRetryStrategy
source§fn default() -> StandardRetryStrategy
fn default() -> StandardRetryStrategy
Returns the “default value” for a type. Read more
source§impl RetryStrategy for StandardRetryStrategy
impl RetryStrategy for StandardRetryStrategy
source§fn should_attempt_initial_request(
&self,
runtime_components: &RuntimeComponents,
cfg: &ConfigBag
) -> Result<ShouldAttempt, BoxError>
fn should_attempt_initial_request( &self, runtime_components: &RuntimeComponents, cfg: &ConfigBag ) -> Result<ShouldAttempt, BoxError>
Decides if the initial attempt should be made.
source§fn should_attempt_retry(
&self,
ctx: &InterceptorContext,
runtime_components: &RuntimeComponents,
cfg: &ConfigBag
) -> Result<ShouldAttempt, BoxError>
fn should_attempt_retry( &self, ctx: &InterceptorContext, runtime_components: &RuntimeComponents, cfg: &ConfigBag ) -> Result<ShouldAttempt, BoxError>
Decides if a retry should be done. Read more
source§impl Storable for StandardRetryStrategy
impl Storable for StandardRetryStrategy
§type Storer = StoreReplace<StandardRetryStrategy>
type Storer = StoreReplace<StandardRetryStrategy>
Specify how an item is stored in the config bag, e.g.
StoreReplace
and StoreAppend
Auto Trait Implementations§
impl !Freeze for StandardRetryStrategy
impl RefUnwindSafe for StandardRetryStrategy
impl Send for StandardRetryStrategy
impl Sync for StandardRetryStrategy
impl Unpin for StandardRetryStrategy
impl UnwindSafe for StandardRetryStrategy
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> 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>
Creates a shared type from an unshared type.