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