pub struct ProfileFileRetryConfigProvider { /* private fields */ }
Expand description
Load retry configuration properties from a profile file
This provider will attempt to load AWS shared configuration, then read retry configuration properties from the active profile.
Examples
Loads 2 as the max_attempts
to make when sending a request
[default]
max_attempts = 2
Loads standard
as the retry_mode
if and only if the other
profile is selected.
[profile other]
retry_mode = standard
This provider is part of the default retry_config provider chain.
Implementations
sourceimpl ProfileFileRetryConfigProvider
impl ProfileFileRetryConfigProvider
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ProfileFileRetryConfigProvider
To override the selected profile, set the AWS_PROFILE
environment variable or use the Builder.
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Builder to construct a ProfileFileRetryConfigProvider
sourcepub async fn retry_config_builder(
&self
) -> Result<RetryConfigBuilder, RetryConfigErr>
pub async fn retry_config_builder(
&self
) -> Result<RetryConfigBuilder, RetryConfigErr>
Attempt to create a new RetryConfigBuilder from a profile file.
Trait Implementations
sourceimpl Default for ProfileFileRetryConfigProvider
impl Default for ProfileFileRetryConfigProvider
sourcefn default() -> ProfileFileRetryConfigProvider
fn default() -> ProfileFileRetryConfigProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ProfileFileRetryConfigProvider
impl Send for ProfileFileRetryConfigProvider
impl Sync for ProfileFileRetryConfigProvider
impl Unpin for ProfileFileRetryConfigProvider
impl UnwindSafe for ProfileFileRetryConfigProvider
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> 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