Enum aws_smithy_types::retry::ReconnectMode
source · pub enum ReconnectMode {
ReconnectOnTransientError,
ReuseAllConnections,
}
Expand description
Mode for connection re-establishment
By default, when a transient error is encountered, the connection in use will be poisoned. This
behavior can be disabled by setting ReconnectMode::ReuseAllConnections
instead.
Variants§
ReconnectOnTransientError
Reconnect on ErrorKind::TransientError
ReuseAllConnections
Disable reconnect on error
When this setting is applied, 503s, timeouts, and other transient errors will not lead to a new connection being established unless the connection is closed by the remote.
Trait Implementations§
source§impl Clone for ReconnectMode
impl Clone for ReconnectMode
source§fn clone(&self) -> ReconnectMode
fn clone(&self) -> ReconnectMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReconnectMode
impl Debug for ReconnectMode
source§impl PartialEq for ReconnectMode
impl PartialEq for ReconnectMode
source§fn eq(&self, other: &ReconnectMode) -> bool
fn eq(&self, other: &ReconnectMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Storable for ReconnectMode
impl Storable for ReconnectMode
§type Storer = StoreReplace<ReconnectMode>
type Storer = StoreReplace<ReconnectMode>
Specify how an item is stored in the config bag, e.g.
StoreReplace
and StoreAppend
impl Copy for ReconnectMode
impl StructuralPartialEq for ReconnectMode
Auto Trait Implementations§
impl Freeze for ReconnectMode
impl RefUnwindSafe for ReconnectMode
impl Send for ReconnectMode
impl Sync for ReconnectMode
impl Unpin for ReconnectMode
impl UnwindSafe for ReconnectMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more