Struct aws_smithy_types::retry::RetryConfig
source · [−]#[non_exhaustive]pub struct RetryConfig { /* private fields */ }
Expand description
Retry configuration for requests.
Implementations
sourceimpl RetryConfig
impl RetryConfig
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a default RetryConfig
with RetryMode::Standard
and max attempts of three.
sourcepub fn with_retry_mode(self, retry_mode: RetryMode) -> Self
pub fn with_retry_mode(self, retry_mode: RetryMode) -> Self
Changes the retry mode.
sourcepub fn with_max_attempts(self, max_attempts: u32) -> Self
pub fn with_max_attempts(self, max_attempts: u32) -> Self
Changes the max attempts. This value must be greater than zero.
sourcepub fn max_attempts(&self) -> u32
pub fn max_attempts(&self) -> u32
Returns the max attempts.
Trait Implementations
sourceimpl Clone for RetryConfig
impl Clone for RetryConfig
sourcefn clone(&self) -> RetryConfig
fn clone(&self) -> RetryConfig
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 RetryConfig
impl Debug for RetryConfig
sourceimpl Default for RetryConfig
impl Default for RetryConfig
sourceimpl PartialEq<RetryConfig> for RetryConfig
impl PartialEq<RetryConfig> for RetryConfig
sourcefn eq(&self, other: &RetryConfig) -> bool
fn eq(&self, other: &RetryConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RetryConfig) -> bool
fn ne(&self, other: &RetryConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for RetryConfig
Auto Trait Implementations
impl RefUnwindSafe for RetryConfig
impl Send for RetryConfig
impl Sync for RetryConfig
impl Unpin for RetryConfig
impl UnwindSafe for RetryConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more