Struct condow_rusoto::config::RetryDelayMaxMs
source · [−]pub struct RetryDelayMaxMs(_);
Expand description
The maximum retry for a retry attempt in milliseconds. Default is 5 seconds.
Implementations
sourceimpl RetryDelayMaxMs
impl RetryDelayMaxMs
pub fn new<T>(v: T) -> RetryDelayMaxMs where
T: Into<u64>,
sourceimpl RetryDelayMaxMs
impl RetryDelayMaxMs
sourcepub fn into_inner(self) -> u64
pub fn into_inner(self) -> u64
Returns the inner representation
sourceimpl RetryDelayMaxMs
impl RetryDelayMaxMs
sourcepub const ENV_TYPE_NAME: &'static str = &"RETRY_DELAY_MAX_MS"
pub const ENV_TYPE_NAME: &'static str = &"RETRY_DELAY_MAX_MS"
The default name of the environment variable for this type.
The name of the environment variable is “ RETRY_DELAY_MAX_MS “
sourcepub fn try_from_env() -> Result<Option<RetryDelayMaxMs>, Error>
pub fn try_from_env() -> Result<Option<RetryDelayMaxMs>, 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_DELAY_MAX_MS
“
sourcepub fn try_from_env_prefixed<T>(
prefix: T
) -> Result<Option<RetryDelayMaxMs>, Error> where
T: Into<String>,
pub fn try_from_env_prefixed<T>(
prefix: T
) -> Result<Option<RetryDelayMaxMs>, 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_DELAY_MAX_MS
“
The underscore and prefix will be omitted if prefix is empty.
sourcepub fn try_from_env_named<T>(
var_name: T
) -> Result<Option<RetryDelayMaxMs>, Error> where
T: AsRef<str>,
pub fn try_from_env_named<T>(
var_name: T
) -> Result<Option<RetryDelayMaxMs>, 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<RetryDelayMaxMs>, Error>
pub fn try_from_env_type_name() -> Result<Option<RetryDelayMaxMs>, 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_DELAY_MAX_MS
“
sourcepub fn from_env() -> Result<RetryDelayMaxMs, Error>
pub fn from_env() -> Result<RetryDelayMaxMs, 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_DELAY_MAX_MS “
sourcepub fn from_env_prefixed<T>(prefix: T) -> Result<RetryDelayMaxMs, Error> where
T: Into<String>,
pub fn from_env_prefixed<T>(prefix: T) -> Result<RetryDelayMaxMs, 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_DELAY_MAX_MS
“
The underscore and prefix will be omitted if prefix is empty.
sourcepub fn from_env_named<T>(var_name: T) -> Result<RetryDelayMaxMs, Error> where
T: AsRef<str>,
pub fn from_env_named<T>(var_name: T) -> Result<RetryDelayMaxMs, 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<RetryDelayMaxMs, Error>
pub fn from_env_type_name() -> Result<RetryDelayMaxMs, 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_DELAY_MAX_MS “
sourcepub fn from_env_opt() -> Option<RetryDelayMaxMs>
pub fn from_env_opt() -> Option<RetryDelayMaxMs>
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_DELAY_MAX_MS
“
sourcepub fn from_env_opt_prefixed<T>(prefix: T) -> Option<RetryDelayMaxMs> where
T: Into<String>,
pub fn from_env_opt_prefixed<T>(prefix: T) -> Option<RetryDelayMaxMs> 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_DELAY_MAX_MS
“
The underscore and prefix will be omitted if prefix is empty.
sourcepub fn from_env_opt_named<T>(var_name: T) -> Option<RetryDelayMaxMs> where
T: AsRef<str>,
pub fn from_env_opt_named<T>(var_name: T) -> Option<RetryDelayMaxMs> 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<RetryDelayMaxMs>
pub fn from_env_opt_type_name() -> Option<RetryDelayMaxMs>
Initialize from the environment.
Returns None
if the value could not be read for any reason.
The name of the environment variable is “
RETRY_DELAY_MAX_MS
“
Methods from Deref<Target = u64>
Trait Implementations
sourceimpl Clone for RetryDelayMaxMs
impl Clone for RetryDelayMaxMs
sourcefn clone(&self) -> RetryDelayMaxMs
fn clone(&self) -> RetryDelayMaxMs
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 RetryDelayMaxMs
impl Debug for RetryDelayMaxMs
sourceimpl Default for RetryDelayMaxMs
impl Default for RetryDelayMaxMs
sourcefn default() -> RetryDelayMaxMs
fn default() -> RetryDelayMaxMs
Returns the “default value” for a type. Read more
sourceimpl Deref for RetryDelayMaxMs
impl Deref for RetryDelayMaxMs
sourceimpl DerefMut for RetryDelayMaxMs
impl DerefMut for RetryDelayMaxMs
sourcefn deref_mut(&mut self) -> &mut <RetryDelayMaxMs as Deref>::Target
fn deref_mut(&mut self) -> &mut <RetryDelayMaxMs as Deref>::Target
Mutably dereferences the value.
sourceimpl Display for RetryDelayMaxMs
impl Display for RetryDelayMaxMs
sourceimpl From<Duration> for RetryDelayMaxMs
impl From<Duration> for RetryDelayMaxMs
sourcefn from(dur: Duration) -> RetryDelayMaxMs
fn from(dur: Duration) -> RetryDelayMaxMs
Converts to this type from the input type.
sourceimpl From<RetryDelayMaxMs> for u64
impl From<RetryDelayMaxMs> for u64
sourcefn from(v: RetryDelayMaxMs) -> u64
fn from(v: RetryDelayMaxMs) -> u64
Converts to this type from the input type.
sourceimpl From<u64> for RetryDelayMaxMs
impl From<u64> for RetryDelayMaxMs
sourcefn from(v: u64) -> RetryDelayMaxMs
fn from(v: u64) -> RetryDelayMaxMs
Converts to this type from the input type.
sourceimpl FromStr for RetryDelayMaxMs
impl FromStr for RetryDelayMaxMs
sourceimpl Ord for RetryDelayMaxMs
impl Ord for RetryDelayMaxMs
sourceimpl PartialEq<RetryDelayMaxMs> for RetryDelayMaxMs
impl PartialEq<RetryDelayMaxMs> for RetryDelayMaxMs
sourcefn eq(&self, other: &RetryDelayMaxMs) -> bool
fn eq(&self, other: &RetryDelayMaxMs) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RetryDelayMaxMs) -> bool
fn ne(&self, other: &RetryDelayMaxMs) -> bool
This method tests for !=
.
sourceimpl PartialOrd<RetryDelayMaxMs> for RetryDelayMaxMs
impl PartialOrd<RetryDelayMaxMs> for RetryDelayMaxMs
sourcefn partial_cmp(&self, other: &RetryDelayMaxMs) -> Option<Ordering>
fn partial_cmp(&self, other: &RetryDelayMaxMs) -> 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 RetryDelayMaxMs
impl Eq for RetryDelayMaxMs
impl StructuralEq for RetryDelayMaxMs
impl StructuralPartialEq for RetryDelayMaxMs
Auto Trait Implementations
impl RefUnwindSafe for RetryDelayMaxMs
impl Send for RetryDelayMaxMs
impl Sync for RetryDelayMaxMs
impl Unpin for RetryDelayMaxMs
impl UnwindSafe for RetryDelayMaxMs
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