Struct aws_sdk_s3::RetryConfig
source · [−]#[non_exhaustive]pub struct RetryConfig { /* private fields */ }
Expand description
Retry configuration for requests.
Implementations
sourceimpl RetryConfig
impl RetryConfig
sourcepub fn new() -> RetryConfig
pub fn new() -> RetryConfig
Creates a default RetryConfig
with RetryMode::Standard
and max attempts of three.
sourcepub fn disabled() -> RetryConfig
pub fn disabled() -> RetryConfig
Creates a RetryConfig
that has retries disabled.
sourcepub fn with_retry_mode(self, retry_mode: RetryMode) -> RetryConfig
pub fn with_retry_mode(self, retry_mode: RetryMode) -> RetryConfig
Changes the retry mode.
sourcepub fn with_max_attempts(self, max_attempts: u32) -> RetryConfig
pub fn with_max_attempts(self, max_attempts: u32) -> RetryConfig
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
sourcefn default() -> RetryConfig
fn default() -> RetryConfig
Returns the “default value” for a type. Read more
sourceimpl From<RetryConfig> for Config
impl From<RetryConfig> for Config
sourcefn from(conf: RetryConfig) -> Config
fn from(conf: RetryConfig) -> Config
Converts to this type from the input type.
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> 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> 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