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