Struct condow_rusoto::config::RetryMaxAttempts
source · [−]pub struct RetryMaxAttempts(_);
Expand description
The maximum number of retry attempts. This excludes the original attempt. Default is 2.
Implementations
sourceimpl RetryMaxAttempts
impl RetryMaxAttempts
pub fn new<T>(v: T) -> RetryMaxAttempts where
T: Into<usize>,
sourceimpl RetryMaxAttempts
impl RetryMaxAttempts
sourcepub fn into_inner(self) -> usize
pub fn into_inner(self) -> usize
Returns the inner representation
sourceimpl RetryMaxAttempts
impl RetryMaxAttempts
sourcepub const ENV_TYPE_NAME: &'static str = &"RETRY_MAX_ATTEMPTS"
pub const ENV_TYPE_NAME: &'static str = &"RETRY_MAX_ATTEMPTS"
The default name of the environment variable for this type.
The name of the environment variable is “ RETRY_MAX_ATTEMPTS “
sourcepub fn try_from_env() -> Result<Option<RetryMaxAttempts>, Error>
pub fn try_from_env() -> Result<Option<RetryMaxAttempts>, Error>
Initialize from the environment.
Returns None
if the value was not found and fails if the value could not be parsed.
The name of the environment variable is “CONDOW_
RETRY_MAX_ATTEMPTS
“
sourcepub fn try_from_env_prefixed<T>(
prefix: T
) -> Result<Option<RetryMaxAttempts>, Error> where
T: Into<String>,
pub fn try_from_env_prefixed<T>(
prefix: T
) -> Result<Option<RetryMaxAttempts>, Error> where
T: Into<String>,
Initialize from the environment.
Returns None
if the value was not found and fails if the value could not be parsed.
The name of the environment variable is “prefix
_
RETRY_MAX_ATTEMPTS
“
The underscore and prefix will be omitted if prefix is empty.
sourcepub fn try_from_env_named<T>(
var_name: T
) -> Result<Option<RetryMaxAttempts>, Error> where
T: AsRef<str>,
pub fn try_from_env_named<T>(
var_name: T
) -> Result<Option<RetryMaxAttempts>, Error> where
T: AsRef<str>,
Initialize from the environment.
Returns None
if the value was not found and fails if the value could not be parsed.
The name of the environment variable is var_name
.
sourcepub fn try_from_env_type_name() -> Result<Option<RetryMaxAttempts>, Error>
pub fn try_from_env_type_name() -> Result<Option<RetryMaxAttempts>, Error>
Initialize from the environment.
Returns None
if the value was not found and fails if the value could not be parsed.
The name of the environment variable is “
RETRY_MAX_ATTEMPTS
“
sourcepub fn from_env() -> Result<RetryMaxAttempts, Error>
pub fn from_env() -> Result<RetryMaxAttempts, Error>
Initialize from the environment. Fails if the value was not found or if the value could not be parsed. The name of the environment variable is “CONDOW_ RETRY_MAX_ATTEMPTS “
sourcepub fn from_env_prefixed<T>(prefix: T) -> Result<RetryMaxAttempts, Error> where
T: Into<String>,
pub fn from_env_prefixed<T>(prefix: T) -> Result<RetryMaxAttempts, Error> where
T: Into<String>,
Initialize from the environment.
Fails if the value was not found or if the value could not be parsed.
The name of the environment variable is “prefix
_
RETRY_MAX_ATTEMPTS
“
The underscore and prefix will be omitted if prefix is empty.
sourcepub fn from_env_named<T>(var_name: T) -> Result<RetryMaxAttempts, Error> where
T: AsRef<str>,
pub fn from_env_named<T>(var_name: T) -> Result<RetryMaxAttempts, Error> where
T: AsRef<str>,
Initialize from the environment.
Fails if the value was not found or if the value could not be parsed.
The name of the environment variable is var_name
.
sourcepub fn from_env_type_name() -> Result<RetryMaxAttempts, Error>
pub fn from_env_type_name() -> Result<RetryMaxAttempts, Error>
Initialize from the environment. Fails if the value was not found or if the value could not be parsed. The name of the environment variable is “ RETRY_MAX_ATTEMPTS “
sourcepub fn from_env_opt() -> Option<RetryMaxAttempts>
pub fn from_env_opt() -> Option<RetryMaxAttempts>
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is “CONDOW_
RETRY_MAX_ATTEMPTS
“
sourcepub fn from_env_opt_prefixed<T>(prefix: T) -> Option<RetryMaxAttempts> where
T: Into<String>,
pub fn from_env_opt_prefixed<T>(prefix: T) -> Option<RetryMaxAttempts> where
T: Into<String>,
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is “prefix
_
RETRY_MAX_ATTEMPTS
“
The underscore and prefix will be omitted if prefix is empty.
sourcepub fn from_env_opt_named<T>(var_name: T) -> Option<RetryMaxAttempts> where
T: AsRef<str>,
pub fn from_env_opt_named<T>(var_name: T) -> Option<RetryMaxAttempts> where
T: AsRef<str>,
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is var_name
.
sourcepub fn from_env_opt_type_name() -> Option<RetryMaxAttempts>
pub fn from_env_opt_type_name() -> Option<RetryMaxAttempts>
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is “
RETRY_MAX_ATTEMPTS
“
Methods from Deref<Target = usize>
Trait Implementations
sourceimpl Clone for RetryMaxAttempts
impl Clone for RetryMaxAttempts
sourcefn clone(&self) -> RetryMaxAttempts
fn clone(&self) -> RetryMaxAttempts
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 RetryMaxAttempts
impl Debug for RetryMaxAttempts
sourceimpl Default for RetryMaxAttempts
impl Default for RetryMaxAttempts
sourcefn default() -> RetryMaxAttempts
fn default() -> RetryMaxAttempts
Returns the “default value” for a type. Read more
sourceimpl Deref for RetryMaxAttempts
impl Deref for RetryMaxAttempts
sourceimpl DerefMut for RetryMaxAttempts
impl DerefMut for RetryMaxAttempts
sourcefn deref_mut(&mut self) -> &mut <RetryMaxAttempts as Deref>::Target
fn deref_mut(&mut self) -> &mut <RetryMaxAttempts as Deref>::Target
Mutably dereferences the value.
sourceimpl Display for RetryMaxAttempts
impl Display for RetryMaxAttempts
sourceimpl From<RetryMaxAttempts> for usize
impl From<RetryMaxAttempts> for usize
sourcefn from(v: RetryMaxAttempts) -> usize
fn from(v: RetryMaxAttempts) -> usize
Converts to this type from the input type.
sourceimpl From<usize> for RetryMaxAttempts
impl From<usize> for RetryMaxAttempts
sourcefn from(v: usize) -> RetryMaxAttempts
fn from(v: usize) -> RetryMaxAttempts
Converts to this type from the input type.
sourceimpl FromStr for RetryMaxAttempts
impl FromStr for RetryMaxAttempts
sourceimpl Ord for RetryMaxAttempts
impl Ord for RetryMaxAttempts
sourceimpl PartialEq<RetryMaxAttempts> for RetryMaxAttempts
impl PartialEq<RetryMaxAttempts> for RetryMaxAttempts
sourcefn eq(&self, other: &RetryMaxAttempts) -> bool
fn eq(&self, other: &RetryMaxAttempts) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RetryMaxAttempts) -> bool
fn ne(&self, other: &RetryMaxAttempts) -> bool
This method tests for !=
.
sourceimpl PartialOrd<RetryMaxAttempts> for RetryMaxAttempts
impl PartialOrd<RetryMaxAttempts> for RetryMaxAttempts
sourcefn partial_cmp(&self, other: &RetryMaxAttempts) -> Option<Ordering>
fn partial_cmp(&self, other: &RetryMaxAttempts) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for RetryMaxAttempts
impl Eq for RetryMaxAttempts
impl StructuralEq for RetryMaxAttempts
impl StructuralPartialEq for RetryMaxAttempts
Auto Trait Implementations
impl RefUnwindSafe for RetryMaxAttempts
impl Send for RetryMaxAttempts
impl Sync for RetryMaxAttempts
impl Unpin for RetryMaxAttempts
impl UnwindSafe for RetryMaxAttempts
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
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