Struct aws_sdk_transfer::middleware::RetryConfig
source · [−]pub struct RetryConfig { /* private fields */ }
Expand description
Retry Policy Configuration
Without specific use cases, users should generally rely on the default values set by [Config::default]
(Config::default).`
Currently these fields are private and no setters provided. As needed, this configuration will become user-modifiable in the future..
Implementations
sourceimpl Config
impl Config
sourcepub fn with_base(self, base: fn() -> f64) -> Config
pub fn with_base(self, base: fn() -> f64) -> Config
Override b
in the exponential backoff computation
By default, base
is a randomly generated value between 0 and 1. In tests, it can
be helpful to override this:
use aws_smithy_client::retry::Config;
let conf = Config::default().with_base(||1_f64);
sourcepub fn with_max_attempts(self, max_attempts: u32) -> Config
pub fn with_max_attempts(self, max_attempts: u32) -> Config
Override the maximum number of attempts
max_attempts
must be set to a value of at least 1
(indicating that retries are disabled).
Trait Implementations
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.
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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> 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)
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